summaryrefslogtreecommitdiff
path: root/firmware/libc/memcmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/libc/memcmp.c')
-rw-r--r--firmware/libc/memcmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/libc/memcmp.c b/firmware/libc/memcmp.c
index c2fa1bf6b7..e2894bb05a 100644
--- a/firmware/libc/memcmp.c
+++ b/firmware/libc/memcmp.c
@@ -40,7 +40,7 @@ QUICKREF
40#include "_ansi.h" /* for _DEFUN */ 40#include "_ansi.h" /* for _DEFUN */
41 41
42/* Nonzero if either X or Y is not aligned on a "long" boundary. */ 42/* Nonzero if either X or Y is not aligned on a "long" boundary. */
43#define UNALIGNED(X, Y) \ 43#define ROCKBOX_UNALIGNED(X, Y) \
44 (((long)X & (sizeof (long) - 1)) | ((long)Y & (sizeof (long) - 1))) 44 (((long)X & (sizeof (long) - 1)) | ((long)Y & (sizeof (long) - 1)))
45 45
46/* How many bytes are copied each iteration of the word copy loop. */ 46/* How many bytes are copied each iteration of the word copy loop. */
@@ -78,7 +78,7 @@ _DEFUN (memcmp, (m1, m2, n),
78 /* If the size is too small, or either pointer is unaligned, 78 /* If the size is too small, or either pointer is unaligned,
79 then we punt to the byte compare loop. Hopefully this will 79 then we punt to the byte compare loop. Hopefully this will
80 not turn up in inner loops. */ 80 not turn up in inner loops. */
81 if (!TOO_SMALL(n) && !UNALIGNED(s1,s2)) 81 if (!TOO_SMALL(n) && !ROCKBOX_UNALIGNED(s1,s2))
82 { 82 {
83 /* Otherwise, load and compare the blocks of memory one 83 /* Otherwise, load and compare the blocks of memory one
84 word at a time. */ 84 word at a time. */