Bug 747816 - Add big-endian tags to OTS r77. r=jfkthame, a=npotb

This commit is contained in:
Cameron Kaiser 2012-04-23 18:05:32 -04:00
parent a2158aa44d
commit 045238e544

View File

@ -83,7 +83,12 @@ struct Arena {
// Use a macro instead of a function because gcc 4.4.3 creates static
// initializers in that case. Note this macro assumes a little-endian system.
#if defined(__BIG_ENDIAN__) || defined(_BIG_ENDIAN)
// This is the big-endian equivalent.
#define TAG(d, c, b, a) (a | (b << 8) | (c << 16) | (d << 24))
#else
#define TAG(a, b, c, d) (a | (b << 8) | (c << 16) | (d << 24))
#endif
const struct {
uint32_t tag;