diff options
author | tege <tege@gmplib.org> | 2002-04-15 12:39:24 +0200 |
---|---|---|
committer | tege <tege@gmplib.org> | 2002-04-15 12:39:24 +0200 |
commit | 9b9765ef37e625f6e64fa7c885c058eecd621571 (patch) | |
tree | 72cbcd3ccb38119ab25d3ae8d014d1762ed315b2 /gmp-h.in | |
parent | e24eeb9f7d5b4b1fde4abd9a4a3e5dabd3e534b4 (diff) | |
download | gmp-9b9765ef37e625f6e64fa7c885c058eecd621571.tar.gz |
(__GMPN_ADD, __GMPN_SUB): Nailify.
Diffstat (limited to 'gmp-h.in')
-rw-r--r-- | gmp-h.in | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1695,10 +1695,10 @@ mpq_neg (mpq_ptr __gmp_w, mpq_srcptr __gmp_u) #define __GMPN_ADD(cout, wp, xp, xsize, yp, ysize) \ __GMPN_AORS (cout, wp, xp, xsize, yp, ysize, mpn_add_n, \ - (((wp)[__gmp_i++] = __gmp_x + 1) == 0)) + (((wp)[__gmp_i++] = (__gmp_x + 1) & GMP_NUMB_MASK) == 0)) #define __GMPN_SUB(cout, wp, xp, xsize, yp, ysize) \ __GMPN_AORS (cout, wp, xp, xsize, yp, ysize, mpn_sub_n, \ - (((wp)[__gmp_i++] = __gmp_x - 1), __gmp_x == 0)) + (((wp)[__gmp_i++] = (__gmp_x - 1) & GMP_NUMB_MASK), __gmp_x == 0)) /* The use of __gmp_i indexing is designed to ensure a compile time src==dst |