diff options
Diffstat (limited to 'src/math/point.c')
| -rw-r--r-- | src/math/point.c | 29 |
1 files changed, 24 insertions, 5 deletions
diff --git a/src/math/point.c b/src/math/point.c index a5a1c69..ebe6288 100644 --- a/src/math/point.c +++ b/src/math/point.c @@ -4,9 +4,28 @@ */ #include "point.h" -point_t *gerepile_point(pari_sp ltop, point_t *point) { - if (point) { - gerepileall(ltop, 2, &point->point, &point->order); +point_t *point_new() {} + +point_t **points_new(size_t num) {} + +void point_free(point_t **point) {} + +void points_free(point_t ***point) {} + +int point_random(curve_t *curve, config_t *config, ...) {} + +int points_random(curve_t *curve, config_t *config, ...) { + va_list arg; + va_start(arg, config); + size_t npoints = va_arg(arg, size_t); + va_end(arg); + + curve->points = points_new(npoints); + curve->npoints = npoints; + for (size_t i = 0; i < npoints; ++i) { } - return point; -}
\ No newline at end of file +} + +int points_prime(curve_t *curve, config_t *config, ...) {} + +int points_generators(curve_t *curve, config_t *config, ...) {}
\ No newline at end of file |
