projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c065d59
)
[__BYTE_ORDER == __LITTLE_ENDIAN]: Use correct byte swapping.
author
drepper
<drepper>
Fri, 13 Feb 1998 17:36:32 +0000
(17:36 +0000)
committer
drepper
<drepper>
Fri, 13 Feb 1998 17:36:32 +0000
(17:36 +0000)
wctype/wctype_l.c
patch
|
blob
|
history
diff --git
a/wctype/wctype_l.c
b/wctype/wctype_l.c
index
6a8d469
..
0a19504
100644
(file)
--- a/
wctype/wctype_l.c
+++ b/
wctype/wctype_l.c
@@
-45,9
+45,9
@@
__wctype_l (const char *property, __locale_t locale)
#if __BYTE_ORDER == __BIG_ENDIAN
return result;
#else
-#
define X
SWAPU32(w) \
- (((
(w) & 0xff00ff00) >> 8) | (((w) & 0xff00ff) << 8
))
+#
define
SWAPU32(w) \
+ (((
w) << 24) | (((w) & 0xff00) << 8) | (((w) >> 8) & 0xff00) | ((w) >> 24
))
- return
X
SWAPU32 (result);
+ return SWAPU32 (result);
#endif
}