[libmath-prime-util-perl] 29/40: Not all gcc targets support uint128, e.g. Atom
Partha P. Mukherjee
ppm-guest at moszumanska.debian.org
Thu May 21 18:49:05 UTC 2015
This is an automated email from the git hooks/post-receive script.
ppm-guest pushed a commit to annotated tag v0.30
in repository libmath-prime-util-perl.
commit 1a75d71f4e5da3edfd659af942607bcd38ebd8d5
Author: Dana Jacobsen <dana at acm.org>
Date: Wed Jul 24 17:02:52 2013 -0700
Not all gcc targets support uint128, e.g. Atom
---
mulmod.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/mulmod.h b/mulmod.h
index 91c6ca0..a4a960c 100644
--- a/mulmod.h
+++ b/mulmod.h
@@ -49,7 +49,9 @@
#define mulmod(a,b,m) _mulmod(a,b,m)
#define sqrmod(n,m) _mulmod(n,n,m)
-#elif __GNUC__ == 4 && __GNUC_MINOR__ >= 4
+#elif BITS_PER_WORD == 64 && __GNUC__ == 4 && __GNUC_MINOR__ >= 4 && (defined(__LP64__) || defined(__x86_64__) || defined(__powerpc64__) || defined(_M_X64) || defined(_M_IX86))
+
+ /* We're 64-bit, using a modern gcc, and the target has some 128-bit type */
#if __GNUC__ == 4 && __GNUC_MINOR__ >= 4 && __GNUC_MINOR__ < 6
typedef unsigned int uint128_t __attribute__ ((__mode__ (TI)));
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmath-prime-util-perl.git
More information about the Pkg-perl-cvs-commits
mailing list