From 931e8c59fd6d2ca8e4efedee2c8a1b0e6d36c0eb Mon Sep 17 00:00:00 2001 From: wbhart Date: Tue, 23 Oct 2012 15:18:10 +0000 Subject: [PATCH] Moved some more fft prototypes from gmp.h to gmp-impl.h. --- gmp-h.in | 14 -------------- gmp-impl.h | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/gmp-h.in b/gmp-h.in index 82481961..c7cfccb8 100644 --- a/gmp-h.in +++ b/gmp-h.in @@ -1834,20 +1834,6 @@ __GMP_DECLSPEC void mpn_zero __GMP_PROTO ((mp_ptr, mp_size_t)); /**************** MPN API for FFT ****************/ -#define mpn_normmod_2expp1 __MPN(normmod_2expp1) -__GMP_DECLSPEC void mpn_normmod_2expp1 __GMP_PROTO ((mp_ptr t, mp_size_t limbs)); - -#define mpn_div_2expmod_2expp1 __MPN(div_2expmod_2expp1) -__GMP_DECLSPEC void mpn_div_2expmod_2expp1 __GMP_PROTO ((mp_ptr t, mp_srcptr i1, mp_size_t limbs, mp_bitcnt_t d)); - -#define mpn_mul_trunc_sqrt2 __MPN(mul_trunc_sqrt2) -__GMP_DECLSPEC void mpn_mul_trunc_sqrt2 __GMP_PROTO ((mp_ptr r1, mp_srcptr i1, mp_size_t n1, - mp_srcptr i2, mp_size_t n2, mp_bitcnt_t depth, mp_bitcnt_t w)); - -#define mpn_mul_mfa_trunc_sqrt2 __MPN(mul_mfa_trunc_sqrt2) -__GMP_DECLSPEC void mpn_mul_mfa_trunc_sqrt2 __GMP_PROTO ((mp_ptr r1, mp_srcptr i1, mp_size_t n1, - mp_srcptr i2, mp_size_t n2, mp_bitcnt_t depth, mp_bitcnt_t w)); - #define mpn_mul_fft_main __MPN(mul_fft_main) __GMP_DECLSPEC void mpn_mul_fft_main __GMP_PROTO ((mp_ptr r1, mp_srcptr i1, mp_size_t n1, mp_srcptr i2, mp_size_t n2)); diff --git a/gmp-impl.h b/gmp-impl.h index 8165ac61..c5e55ddd 100644 --- a/gmp-impl.h +++ b/gmp-impl.h @@ -1272,6 +1272,20 @@ __GMP_DECLSPEC int mpn_mulmod_2expp1_basecase __GMP_PROTO ((mp_ptr, mp_srcptr, m typedef __gmp_randstate_struct *gmp_randstate_ptr; typedef const __gmp_randstate_struct *gmp_randstate_srcptr; +#define mpn_normmod_2expp1 __MPN(normmod_2expp1) +__GMP_DECLSPEC void mpn_normmod_2expp1 __GMP_PROTO ((mp_ptr t, mp_size_t limbs)); + +#define mpn_div_2expmod_2expp1 __MPN(div_2expmod_2expp1) +__GMP_DECLSPEC void mpn_div_2expmod_2expp1 __GMP_PROTO ((mp_ptr t, mp_srcptr i1, mp_size_t limbs, mp_bitcnt_t d)); + +#define mpn_mul_trunc_sqrt2 __MPN(mul_trunc_sqrt2) +__GMP_DECLSPEC void mpn_mul_trunc_sqrt2 __GMP_PROTO ((mp_ptr r1, mp_srcptr i1, mp_size_t n1, + mp_srcptr i2, mp_size_t n2, mp_bitcnt_t depth, mp_bitcnt_t w)); + +#define mpn_mul_mfa_trunc_sqrt2 __MPN(mul_mfa_trunc_sqrt2) +__GMP_DECLSPEC void mpn_mul_mfa_trunc_sqrt2 __GMP_PROTO ((mp_ptr r1, mp_srcptr i1, mp_size_t n1, + mp_srcptr i2, mp_size_t n2, mp_bitcnt_t depth, mp_bitcnt_t w)); + /* Pseudo-random number generator function pointers structure. */ typedef struct { void (*randseed_fn) __GMP_PROTO ((gmp_randstate_t rstate, mpz_srcptr seed));