Group :: System/Libraries
RPM: libtommath
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: libtommath-1.0.1-alt-e2k.patch
Download
Download
diff --git a/tommath.h b/tommath.h
index 7dda0a5..848431d 100644
--- a/tommath.h
+++ b/tommath.h
@@ -26,6 +26,12 @@
extern "C" {
#endif
+/* MS Visual C++ doesn't have a 128bit type for words, so fall back
+ * to 32bit MPI's (where words are 64bit) */
+#if defined(_MSC_VER) || defined(__LLP64__) || defined(__e2k__) || defined(__LCC__)
+# define MP_32BIT
+#endif
+
/* detect 64-bit mode if possible */
#if defined(__x86_64__) || defined(_M_X64) || defined(_M_AMD64) || \
defined(__powerpc64__) || defined(__ppc64__) || defined(__PPC64__) || \