X-Git-Url: https://jxself.org/git/?p=b43-tools.git;a=blobdiff_plain;f=fwcutter%2Fmd5.c;fp=fwcutter%2Fmd5.c;h=c27f0e190e0a6cbf845ae6b7d4ba2552e29886d2;hp=3b90942c7d071d9f8478ec6bcafa9b9eaac26bf0;hb=59e7f0de9b2f24926091025707eb81df3c9eeb1a;hpb=05c2c7589d1ad5c96c0f7fa9c89e018b2e8490e2 diff --git a/fwcutter/md5.c b/fwcutter/md5.c index 3b90942..c27f0e1 100644 --- a/fwcutter/md5.c +++ b/fwcutter/md5.c @@ -24,10 +24,9 @@ #include /* 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 */