Skip to content
Snippets Groups Projects
Commit 4bfdab0d authored by Guillaume Melquiond's avatar Guillaume Melquiond
Browse files

Include generated headers instead of declaring functions on the fly.

This avoids the following kind of warning messages:

tests.c:113:20: warning: implicit declaration of function 'wmpn_add' [-Wimplicit-function-declaration]
             refc = wmpn_add (rp, ap, bp, an, bn);
                    ^~~~~~~~
parent 74df9fab
No related branches found
No related tags found
No related merge requests found
Pipeline #56 failed
...@@ -15,9 +15,15 @@ ...@@ -15,9 +15,15 @@
#ifdef TEST_MINIGMP #ifdef TEST_MINIGMP
#include "mini-gmp.c" #include "mini-gmp.c"
#else #endif
#ifdef TEST_GMP
#include <gmp.h> #include <gmp.h>
#endif #endif
#ifdef TEST_WHY3
#include "build/add.h"
#include "build/mul.h"
#include "build/div.h"
#endif
#include "mt19937-64.c" #include "mt19937-64.c"
#include <stdint.h> #include <stdint.h>
...@@ -26,15 +32,6 @@ ...@@ -26,15 +32,6 @@
#include <sys/time.h> #include <sys/time.h>
#include <time.h> #include <time.h>
uint64_t add(uint64_t * r3, uint64_t * x4, uint64_t * y3, int32_t sx, int32_t
sy);
void mul(uint64_t * r10, uint64_t * x11, uint64_t * y10, int32_t sx2, int32_t
sy2);
void tdiv_qr(uint64_t * q, uint64_t * r, uint64_t * x, uint64_t * y,
int32_t sx, int32_t sy);
#define TMP_ALLOC_LIMBS(n) malloc((n) * 8) #define TMP_ALLOC_LIMBS(n) malloc((n) * 8)
void mpn_dump(mp_ptr ap, mp_size_t an) { void mpn_dump(mp_ptr ap, mp_size_t an) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment