diff options
author | Joshua Haberman <joshua@reverberate.org> | 2009-06-25 08:12:36 -0700 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2009-06-25 08:12:36 -0700 |
commit | c7f2a271ae29066744cf09499f744a0c6b89a27e (patch) | |
tree | bd0c11dd81868f30b579c919697b343b02def321 /upb_msg.h | |
parent | 88cc3f2fc88aa233e9357f1c5194494e7de4c0ee (diff) |
Small improvement to bitmasking that generates better code.
Diffstat (limited to 'upb_msg.h')
-rw-r--r-- | upb_msg.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -209,7 +209,7 @@ INLINE size_t upb_isset_offset(uint32_t field_index) { return field_index / 8; } -INLINE size_t upb_isset_mask(uint32_t field_index) { +INLINE uint8_t upb_isset_mask(uint32_t field_index) { return 1 << (field_index % 8); } |