diff options
Diffstat (limited to 'firmware/libc/strchr.c')
-rw-r--r-- | firmware/libc/strchr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/libc/strchr.c b/firmware/libc/strchr.c index ada6e2d098..425d4a2f7a 100644 --- a/firmware/libc/strchr.c +++ b/firmware/libc/strchr.c | |||
@@ -38,7 +38,7 @@ QUICKREF | |||
38 | #include "_ansi.h" /* for _DEFUN */ | 38 | #include "_ansi.h" /* for _DEFUN */ |
39 | 39 | ||
40 | /* Nonzero if X is not aligned on a "long" boundary. */ | 40 | /* Nonzero if X is not aligned on a "long" boundary. */ |
41 | #define UNALIGNED(X) ((long)X & (sizeof (long) - 1)) | 41 | #define ROCKBOX_UNALIGNED(X) ((long)X & (sizeof (long) - 1)) |
42 | 42 | ||
43 | /* How many bytes are loaded each iteration of the word copy loop. */ | 43 | /* How many bytes are loaded each iteration of the word copy loop. */ |
44 | #define LBLOCKSIZE (sizeof (long)) | 44 | #define LBLOCKSIZE (sizeof (long)) |
@@ -83,7 +83,7 @@ _DEFUN (strchr, (s1, i), | |||
83 | unsigned long mask,j; | 83 | unsigned long mask,j; |
84 | unsigned long *aligned_addr; | 84 | unsigned long *aligned_addr; |
85 | 85 | ||
86 | if (!UNALIGNED (s)) | 86 | if (!ROCKBOX_UNALIGNED (s)) |
87 | { | 87 | { |
88 | mask = 0; | 88 | mask = 0; |
89 | for (j = 0; j < LBLOCKSIZE; j++) | 89 | for (j = 0; j < LBLOCKSIZE; j++) |