]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Disable the __int128 code path for lehmer 128bit RNG because it doesn't
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 10 Dec 2016 20:57:04 +0000 (20:57 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 10 Dec 2016 20:57:04 +0000 (20:57 +0000)
compile on an old XCode version I use.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12309 d7cf8633-e32d-0410-b094-e92efae38249

mathlib.c

index 69203a333f75282cc2ca1c68635e5feed3c5cf42..40f03e43f3c902054e9289b166553b728cdf2048 100644 (file)
--- a/mathlib.c
+++ b/mathlib.c
@@ -907,7 +907,7 @@ static unsigned int mul_Lecuyer[4] = { 0x12e15e35, 0xb500f16e, 0x2e714eb2, 0xb37
 
 static void mul128(const unsigned int a[], const unsigned int b[], unsigned int dest[4])
 {
-#if defined(__GNUC__) && defined(__x86_64__)
+#if 0 //defined(__GNUC__) && defined(__x86_64__)
        unsigned __int128 ia = ((__int128)a[0] << 96) | ((__int128)a[1] << 64) | ((__int128)a[2] << 32) | (a[3]);
        unsigned __int128 ib = ((__int128)b[0] << 96) | ((__int128)b[1] << 64) | ((__int128)b[2] << 32) | (b[3]);
        unsigned __int128 id = ia * ib;