gmp-snap-20040203/mul_fft.c

Torbjorn Granlund tg at swox.com
Wed Feb 4 14:40:25 CET 2004


Jason <jasonmoxham at btclick.com> writes:

  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 ?
  
I cannot reproduce using gcc 3.3.2 (under FreeBSD, but that is
less relevant).

-- 
Torbjörn


More information about the gmp-bugs mailing list