Differences From Artifact [76df5e8f5b]:
- File src/macros.h — part of check-in [b4039f9a85] at 2020-09-29 21:36:00 on branch trunk — Merge support for tagged pointers (user: js, size: 21492) [annotate] [blame] [check-ins using] [more...]
To Artifact [43e7dc4d8f]:
- File
src/macros.h
— part of check-in
[aeb403a1ed]
at
2020-10-10 14:27:37
on branch trunk
— OFObject: Change type of -[hash] to unsigned long
The internal hash is still 32 bit in most places, but this way, it is at
least not baked into the API and ABI and can be upgraded later, should
that ever be necessary. (user: js, size: 21501) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
810 811 812 813 814 815 816 | { \ hash += (hash << 3); \ hash ^= (hash >> 11); \ hash += (hash << 15); \ } #define OF_HASH_ADD_HASH(hash, other) \ { \ | | | 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 | { \ hash += (hash << 3); \ hash ^= (hash >> 11); \ hash += (hash << 15); \ } #define OF_HASH_ADD_HASH(hash, other) \ { \ uint32_t otherCopy = (uint32_t)other; \ OF_HASH_ADD(hash, (otherCopy >> 24) & 0xFF); \ OF_HASH_ADD(hash, (otherCopy >> 16) & 0xFF); \ OF_HASH_ADD(hash, (otherCopy >> 8) & 0xFF); \ OF_HASH_ADD(hash, otherCopy & 0xFF); \ } static OF_INLINE bool |
︙ | ︙ |