|
|
@ -158,10 +158,14 @@ FUNCS(fptr, fptr, upb_func*, UPB_CTYPE_FPTR); |
|
|
|
// length into a byte-wise string representation, so code generation needs to
|
|
|
|
// length into a byte-wise string representation, so code generation needs to
|
|
|
|
// help it along.
|
|
|
|
// help it along.
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// "len1" is the low byte and len4 is the high byte. For big endian we'll need
|
|
|
|
// "len1" is the low byte and len4 is the high byte.
|
|
|
|
// to define a version of this that flips it around.
|
|
|
|
#ifdef UPB_BIG_ENDIAN |
|
|
|
|
|
|
|
#define UPB_TABKEY_STR(len1, len2, len3, len4, strval) \ |
|
|
|
|
|
|
|
(uintptr_t)(len4 len3 len2 len1 strval) |
|
|
|
|
|
|
|
#else |
|
|
|
#define UPB_TABKEY_STR(len1, len2, len3, len4, strval) \ |
|
|
|
#define UPB_TABKEY_STR(len1, len2, len3, len4, strval) \ |
|
|
|
(uintptr_t)(len1 len2 len3 len4 strval) |
|
|
|
(uintptr_t)(len1 len2 len3 len4 strval) |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
// Either:
|
|
|
|
// Either:
|
|
|
|
// 1. an actual integer key, or
|
|
|
|
// 1. an actual integer key, or
|
|
|
|