зеркало из https://github.com/github/ruby.git
Use WORDS_BIGENDIAN
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
396d835d09
Коммит
db2c32778d
6
string.c
6
string.c
|
@ -449,10 +449,10 @@ search_nonascii(const char *p, const char *e)
|
|||
const uintptr_t *t = (const uintptr_t *)(e - (SIZEOF_VOIDP-1));
|
||||
for (;s < t; s++) {
|
||||
if (*s & NONASCII_MASK) {
|
||||
#if BYTE_ORDER == LITTLE_ENDIAN
|
||||
return (const char *)s + (ntz_intptr(*s&NONASCII_MASK)>>3);
|
||||
#else
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
return (const char *)s + (nlz_intptr(*s&NONASCII_MASK)>>3);
|
||||
#else
|
||||
return (const char *)s + (ntz_intptr(*s&NONASCII_MASK)>>3);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче