odd using of macro MODLIMB_INVERSE_3

Andy borucki.andrzej at gmail.com
Sat Nov 9 14:34:57 UTC 2019

In file toom_interpolate_6pts.c is:
/* For odd divisors, mpn_divexact_1 works fine with two's complement. */
#ifndef mpn_divexact_by3
#if HAVE_NATIVE_mpn_pi1_bdiv_q_1 && MODLIMB_INVERSE_3
#define mpn_divexact_by3(dst,src,size)
#define mpn_divexact_by3(dst,src,size) mpn_divexact_1(dst,src,size,3)
This can make some problems on some compilers.
if I have correctly guessed the intentions of this conditional, it doesn't
matter what the value is MODLIMB_INVERSE_3 but if is defined,
should be .
#if HAVE_NATIVE_mpn_pi1_bdiv_q_1 && defined MODLIMB_INVERSE_3

More information about the gmp-devel mailing list