mldonkey-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mldonkey-commits] Changes to mldonkey/src/utils/lib/tiger.c


From: mldonkey-commits
Subject: [Mldonkey-commits] Changes to mldonkey/src/utils/lib/tiger.c
Date: Wed, 30 Nov 2005 18:46:30 -0500

Index: mldonkey/src/utils/lib/tiger.c
diff -u mldonkey/src/utils/lib/tiger.c:1.8 mldonkey/src/utils/lib/tiger.c:1.9
--- mldonkey/src/utils/lib/tiger.c:1.8  Tue Oct 25 09:46:50 2005
+++ mldonkey/src/utils/lib/tiger.c      Wed Nov 30 23:46:25 2005
@@ -18,11 +18,7 @@
 */
 
 #include "tiger.h"
-
-/* Big endian:                                         */
-#if !(defined(__alpha)||defined(__i386__)||defined(__vax__))
-#define BIG_ENDIAN
-#endif
+#include <caml/config.h>
 
 /* The following macro denotes that an optimization    */
 /* for Alpha is required. It is used only for          */
@@ -193,7 +189,7 @@
 
   for(i=length; i>=64; i-=64)
     {
-#ifdef BIG_ENDIAN
+#ifdef ARCH_BIG_ENDIAN
       for(j=0; j<64; j++)
        temp[j^7] = ((byte*)str)[j];
       tiger_compress(((word64*)temp), res);
@@ -203,7 +199,7 @@
       str += 8;
     }
 
-#ifdef BIG_ENDIAN
+#ifdef ARCH_BIG_ENDIAN
   for(j=0; j<i; j++)
     temp[j^7] = ((byte*)str)[j];
 
@@ -753,7 +749,7 @@
 
 void swap_digest(unsigned char *digest)
 {
-  #ifdef BIG_ENDIAN
+  #ifdef ARCH_BIG_ENDIAN
   {
     int i,j; 
     for(i=0; i<3; i++){




reply via email to

[Prev in Thread] Current Thread [Next in Thread]