mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
Bug 747816 - Add big-endian tags to OTS r77. r=jfkthame, a=npotb
This commit is contained in:
parent
a2158aa44d
commit
045238e544
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user