gmp-snap-20040203/mul_fft.c

Jason jasonmoxham at btclick.com
Wed Feb 4 14:13:33 CET 2004


on athlon linux 2.4.24 gcc-3.2.3
./configure --enable-assert --disable-shared
make
gcc -Wall -W jay.c .libs/libgmp.a
./a.out

we get assertion failure
mul_fft.c:996: GNU MP assertion failed: (pad_op +pl -pl3)[__i] == 0


#include <stdio.h>
#include <stdlib.h>
#define WANT_ASSERT 1
#include "gmp.h"

int	main(void)
{mpz_t y,z;

mpz_init(y);
mpz_init(z);
mpz_set_ui(y,120);
mpz_mul_2exp(y,y,100000);
mpz_add_ui(y,y,1);
mpz_pow_ui(z,y,12);
return 0;}

can you confirm ?



More information about the gmp-bugs mailing list