Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Unified Diff: ports/glibc-compat/include/machine/endian.h

Issue 617003014: Switching back to __builtin_bswap32. (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ports/glibc-compat/include/machine/endian.h
diff --git a/ports/glibc-compat/include/machine/endian.h b/ports/glibc-compat/include/machine/endian.h
index 497fdd44cc8040586320953bb7f998f3567bc51d..4e4f4185773a8253faf388a5d3d6f615f62b0519 100644
--- a/ports/glibc-compat/include/machine/endian.h
+++ b/ports/glibc-compat/include/machine/endian.h
@@ -27,17 +27,11 @@ __inline_bswap_16 (unsigned short int x)
return __byte_swap_constant_16(x);
}
-_ELIDABLE_INLINE unsigned long int
-__inline_bswap_32 (unsigned long int x)
-{
- return __byte_swap_constant_32(x);
-}
-
#define __byte_swap_16(x) \
(__builtin_constant_p(x) ? __byte_swap_constant_16(x) : __inline_bswap_16(x))
#define __byte_swap_32(x) \
- (__builtin_constant_p(x) ? __byte_swap_constant_32(x) : __inline_bswap_32(x))
+ (__builtin_constant_p(x) ? __byte_swap_constant_32(x) : __builtin_bswap32(x))
#define ntohs(x) (unsigned int)__byte_swap_16(x)
#define ntohl(x) (unsigned int)__byte_swap_32(x)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698