Math-Prime-Util
Math-Prime-Util copied to clipboard
Incorrect use of __int128 on some platforms
There are some machines that don't support __int128 and are trying to compile for it. See:
http://www.cpantesters.org/cpan/report/86b6248d-6d8b-1014-81fe-7c4355012b15
for an example. I just pushed a commit that should limit its use to x86_64 and power64 only. We should look in the gcc source to find out what targets actually have this support.
v0.31 has this update, but we should still see what other targets could support this.
From boost, it looks like we could do something like:
#if BITS_PER_WORD == 64 && __GNUC__ == 4 && __GNUC_MINOR__ >= 4 && defined(__SIZEOF_INT128__) && !defined(__CUDACC__)