diff options
| author | J08nY | 2017-02-14 03:14:57 +0100 |
|---|---|---|
| committer | J08nY | 2017-02-14 03:14:57 +0100 |
| commit | 0c5ff628d52678bb44b9c595daf1289833d0e532 (patch) | |
| tree | 913d36f318b30e7984aced1a654d00656d117eb3 /src/math/point.c | |
| parent | 4230a5eb009c92cf7ffe83658e6bf926bccb1400 (diff) | |
| download | ecgen-0c5ff628d52678bb44b9c595daf1289833d0e532.tar.gz ecgen-0c5ff628d52678bb44b9c595daf1289833d0e532.tar.zst ecgen-0c5ff628d52678bb44b9c595daf1289833d0e532.zip | |
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 |
