Remove the broken endianness check in the md5 code.
[b43-tools.git] / fwcutter / md5.c
index 3b90942c7d071d9f8478ec6bcafa9b9eaac26bf0..c27f0e190e0a6cbf845ae6b7d4ba2552e29886d2 100644 (file)
 #include <memory.h>             /* for memcpy() */
 #include "md5.h"
 
+/* This function does the Right Thing (tm) on LittleEndian and BigEndian. */
 static void byteReverse(unsigned char *buf, unsigned longs)
 {
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-/* we need the value in big-endian */
     uint32_t t;
 
     do {
@@ -36,7 +35,6 @@ static void byteReverse(unsigned char *buf, unsigned longs)
        *(uint32_t *) buf = t;
        buf += 4;
     } while (--longs);
-#endif
 }
 
 /* The four core functions - F1 is optimized somewhat */