projects
/
b43-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add b43 firmware assembly beautifier
[b43-tools.git]
/
fwcutter
/
md5.c
diff --git
a/fwcutter/md5.c
b/fwcutter/md5.c
index 3b90942c7d071d9f8478ec6bcafa9b9eaac26bf0..c27f0e190e0a6cbf845ae6b7d4ba2552e29886d2 100644
(file)
--- a/
fwcutter/md5.c
+++ b/
fwcutter/md5.c
@@
-24,10
+24,9
@@
#include <memory.h> /* for memcpy() */
#include "md5.h"
#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)
{
static void byteReverse(unsigned char *buf, unsigned longs)
{
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-/* we need the value in big-endian */
uint32_t t;
do {
uint32_t t;
do {
@@
-36,7
+35,6
@@
static void byteReverse(unsigned char *buf, unsigned longs)
*(uint32_t *) buf = t;
buf += 4;
} while (--longs);
*(uint32_t *) buf = t;
buf += 4;
} while (--longs);
-#endif
}
/* The four core functions - F1 is optimized somewhat */
}
/* The four core functions - F1 is optimized somewhat */