Math-Prime-Util icon indicating copy to clipboard operation
Math-Prime-Util copied to clipboard

Incorrect use of __int128 on some platforms

Open danaj opened this issue 12 years ago • 2 comments

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.

danaj avatar Aug 06 '13 17:08 danaj

v0.31 has this update, but we should still see what other targets could support this.

danaj avatar Aug 07 '13 16:08 danaj

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__)

danaj avatar Oct 22 '14 16:10 danaj