Skip to content

Commit 8d11429

Browse files
committed
Fix #481.
Enable the __int128 code path only on machines where it's defined.
1 parent 388fc11 commit 8d11429

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/integerfactoring.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ static uint64_t gaIMulMod (uint64_t a, uint64_t b, uint64_t m){
266266
);
267267

268268
return r;
269-
#elif (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)
269+
#elif ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) && defined(__SIZEOF_INT128__) && __SIZEOF_INT128__ >= 16
270270
/* Hardcore GCC 4.6+ optimization jazz */
271271
return ((unsigned __int128)a * (unsigned __int128)b) % m;
272272
#else

0 commit comments

Comments
 (0)