summaryrefslogtreecommitdiff
path: root/firmware/libc/strcmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/libc/strcmp.c')
-rw-r--r--firmware/libc/strcmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/libc/strcmp.c b/firmware/libc/strcmp.c
index d540fae7dd..c1487dab74 100644
--- a/firmware/libc/strcmp.c
+++ b/firmware/libc/strcmp.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/* DETECTNULL returns nonzero if (long)X contains a NULL byte. */ 46/* DETECTNULL returns nonzero if (long)X contains a NULL byte. */
@@ -76,7 +76,7 @@ _DEFUN (strcmp, (s1, s2),
76 unsigned long *a2; 76 unsigned long *a2;
77 77
78 /* If s1 or s2 are unaligned, then compare bytes. */ 78 /* If s1 or s2 are unaligned, then compare bytes. */
79 if (!UNALIGNED (s1, s2)) 79 if (!ROCKBOX_UNALIGNED (s1, s2))
80 { 80 {
81 /* If s1 and s2 are word-aligned, compare them a word at a time. */ 81 /* If s1 and s2 are word-aligned, compare them a word at a time. */
82 a1 = (unsigned long*)s1; 82 a1 = (unsigned long*)s1;