Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37371995
en ru br
ALT Linux repos
S:1.1.0-alt2

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


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__) || \
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin