Small improvement to bitmasking that generates better code.

pull/13171/head
Joshua Haberman 16 years ago
parent 88cc3f2fc8
commit c7f2a271ae
  1. 2
      upb_msg.h

@ -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);
}

Loading…
Cancel
Save