summaryrefslogtreecommitdiff
path: root/firmware/libc/strncmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/libc/strncmp.c')
-rw-r--r--firmware/libc/strncmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/libc/strncmp.c b/firmware/libc/strncmp.c
index 315fae810a..83e8d5b457 100644
--- a/firmware/libc/strncmp.c
+++ b/firmware/libc/strncmp.c
@@ -41,7 +41,7 @@ QUICKREF
41#include "_ansi.h" /* for _DEFUN */ 41#include "_ansi.h" /* for _DEFUN */
42 42
43/* Nonzero if either X or Y is not aligned on a "long" boundary. */ 43/* Nonzero if either X or Y is not aligned on a "long" boundary. */
44#define UNALIGNED(X, Y) \ 44#define ROCKBOX_UNALIGNED(X, Y) \
45 (((long)X & (sizeof (long) - 1)) | ((long)Y & (sizeof (long) - 1))) 45 (((long)X & (sizeof (long) - 1)) | ((long)Y & (sizeof (long) - 1)))
46 46
47/* DETECTNULL returns nonzero if (long)X contains a NULL byte. */ 47/* DETECTNULL returns nonzero if (long)X contains a NULL byte. */
@@ -86,7 +86,7 @@ _DEFUN (strncmp, (s1, s2, n),
86 return 0; 86 return 0;
87 87
88 /* If s1 or s2 are unaligned, then compare bytes. */ 88 /* If s1 or s2 are unaligned, then compare bytes. */
89 if (!UNALIGNED (s1, s2)) 89 if (!ROCKBOX_UNALIGNED (s1, s2))
90 { 90 {
91 /* If s1 and s2 are word-aligned, compare them a word at a time. */ 91 /* If s1 and s2 are word-aligned, compare them a word at a time. */
92 a1 = (unsigned long*)s1; 92 a1 = (unsigned long*)s1;