forked from len0rd/rockbox
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
This commit is contained in:
parent
955be5b34a
commit
d984725cbf
12 changed files with 24 additions and 24 deletions
|
|
@ -38,7 +38,7 @@ QUICKREF
|
|||
#include "_ansi.h" /* for _DEFUN */
|
||||
|
||||
/* Nonzero if X is not aligned on a "long" boundary. */
|
||||
#define UNALIGNED(X) ((long)X & (sizeof (long) - 1))
|
||||
#define ROCKBOX_UNALIGNED(X) ((long)X & (sizeof (long) - 1))
|
||||
|
||||
/* How many bytes are loaded each iteration of the word copy loop. */
|
||||
#define LBLOCKSIZE (sizeof (long))
|
||||
|
|
@ -82,7 +82,7 @@ _DEFUN (memchr, (s1, i, n),
|
|||
unsigned long mask,j;
|
||||
unsigned long *aligned_addr;
|
||||
|
||||
if (!UNALIGNED (s))
|
||||
if (!ROCKBOX_UNALIGNED (s))
|
||||
{
|
||||
mask = 0;
|
||||
for (j = 0; j < LBLOCKSIZE; j++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue