diff options
author | Matthias Mohr <Rockbox@Mohrenclan.de> | 2017-01-15 13:29:40 +0100 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2017-01-15 21:32:49 +0100 |
commit | d984725cbf38d0a9e71c866ae61c48ad488373b4 (patch) | |
tree | fc064f5fa0baf667bbcd09d56bc350fbb2b5a0d9 /firmware/asm/memset.c | |
parent | 955be5b34af2e6cf374162ea8b4d4451b1644952 (diff) | |
download | rockbox-d984725cbf38d0a9e71c866ae61c48ad488373b4.tar.gz rockbox-d984725cbf38d0a9e71c866ae61c48ad488373b4.zip |
Renamed defines UNALIGNED to ROCKBOX_UNALIGNED - UNALIGNED is already
defined in mingw environments.
Renamed defines of UNALIGNED to ROCKBOX_UNALIGNED so that they don't
conflict with definitions in mingw32 cross-compiling environments
(defined in _mingw.h).
Change-Id: I369848c0f507e6bf5ff9ab4a60663bbbda6edc52
Diffstat (limited to 'firmware/asm/memset.c')
-rw-r--r-- | firmware/asm/memset.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/asm/memset.c b/firmware/asm/memset.c index 7b8d2137e8..967a973c5d 100644 --- a/firmware/asm/memset.c +++ b/firmware/asm/memset.c | |||
@@ -37,7 +37,7 @@ QUICKREF | |||
37 | #include "_ansi.h" | 37 | #include "_ansi.h" |
38 | 38 | ||
39 | #define LBLOCKSIZE (sizeof(long)) | 39 | #define LBLOCKSIZE (sizeof(long)) |
40 | #define UNALIGNED(X) ((long)X & (LBLOCKSIZE - 1)) | 40 | #define ROCKBOX_UNALIGNED(X) ((long)X & (LBLOCKSIZE - 1)) |
41 | #define TOO_SMALL(LEN) ((LEN) < LBLOCKSIZE) | 41 | #define TOO_SMALL(LEN) ((LEN) < LBLOCKSIZE) |
42 | 42 | ||
43 | _PTR | 43 | _PTR |
@@ -61,7 +61,7 @@ _DEFUN (memset, (m, c, n), | |||
61 | unsigned long buffer; | 61 | unsigned long buffer; |
62 | unsigned long *aligned_addr; | 62 | unsigned long *aligned_addr; |
63 | 63 | ||
64 | if (!TOO_SMALL (n) && !UNALIGNED (m)) | 64 | if (!TOO_SMALL (n) && !ROCKBOX_UNALIGNED (m)) |
65 | { | 65 | { |
66 | /* If we get this far, we know that n is large and m is word-aligned. */ | 66 | /* If we get this far, we know that n is large and m is word-aligned. */ |
67 | 67 | ||