On Thu, 4 Aug 2016, Vincent Lefevre wrote:

The longlong.h file from GMP 6.1.1 contains:

#if !defined (umul_ppmm) && defined (__umulsidi3)
#define umul_ppmm(ph, pl, m0, m1) \
 {                                                                     \
   UDWtype __ll = __umulsidi3 (m0, m1);                                \
   ph = (UWtype) (__ll >> W_TYPE_SIZE);                                \
   pl = (UWtype) __ll;                                                 \
 }
#endif

I suppose that "do ... while (0)" should be added like in the other
umul_ppmm definitions.

This doesn't seem to affect the current GMP code, but it might in
the future. Who knows...

Done. I don't know what platforms use this code, I'll check the webpage with test results tomorrow.

--
Marc Glisse
_______________________________________________
gmp-bugs mailing list
[email protected]
https://gmplib.org/mailman/listinfo/gmp-bugs

Reply via email to