Fix compiler warning in fft_combine_limbs/bits.

This commit is contained in:
wbhart 2012-09-28 15:56:03 +00:00
parent a1a5855710
commit e77e27ca6b
3 changed files with 4 additions and 4 deletions

View File

@ -33,7 +33,7 @@ or implied, of William Hart.
#include "gmp-impl.h"
void
fft_combine_limbs(mp_ptr res, mp_srcptr * poly, long length, mp_size_t coeff_limbs, mp_size_t output_limbs, mp_size_t total_limbs)
fft_combine_limbs(mp_ptr res, const mp_ptr * poly, long length, mp_size_t coeff_limbs, mp_size_t output_limbs, mp_size_t total_limbs)
{
mp_size_t skip, i;
@ -51,7 +51,7 @@ fft_combine_limbs(mp_ptr res, mp_srcptr * poly, long length, mp_size_t coeff_lim
}
void
fft_combine_bits(mp_ptr res, mp_srcptr * poly, long length, mp_bitcnt_t bits, mp_size_t output_limbs, mp_size_t total_limbs)
fft_combine_bits(mp_ptr res, const mp_ptr * poly, long length, mp_bitcnt_t bits, mp_size_t output_limbs, mp_size_t total_limbs)
{
mp_bitcnt_t shift_bits, top_bits = ((GMP_LIMB_BITS - 1) & bits);
mp_size_t coeff_limbs, i;

View File

@ -1857,7 +1857,7 @@ __GMP_DECLSPEC void mpn_mul_fft_main __GMP_PROTO ((mp_ptr r1, mp_srcptr i1, mp_s
__GMP_DECLSPEC mpir_si fft_adjust_limbs __GMP_PROTO ((mp_size_t limbs));
#define fft_combine_bits __fft_combine_bits
__GMP_DECLSPEC void fft_combine_bits __GMP_PROTO ((mp_ptr res, mp_srcptr * poly,
__GMP_DECLSPEC void fft_combine_bits __GMP_PROTO ((mp_ptr res, const mp_ptr * poly,
long length, mp_bitcnt_t bits, mp_size_t output_limbs, mp_size_t total_limbs));
#define fft_split_bits __fft_split_bits

View File

@ -1155,7 +1155,7 @@ __GMP_DECLSPEC void ifft_butterfly __GMP_PROTO ((mp_ptr s, mp_ptr t, mp_ptr i1,
mp_ptr i2, mp_size_t i, mp_size_t limbs, mp_bitcnt_t w));
#define fft_combine_limbs __combine_limbs
__GMP_DECLSPEC void fft_combine_limbs __GMP_PROTO ((mp_ptr res, mp_srcptr * poly, long length,
__GMP_DECLSPEC void fft_combine_limbs __GMP_PROTO ((mp_ptr res, const mp_ptr * poly, long length,
mp_size_t coeff_limbs, mp_size_t output_limbs, mp_size_t total_limbs));
#define fft_split_limbs __fft_split_limbs