Branch: Tag:

2016-01-12

2016-01-12 18:09:27 by Per Hedbor <ph@opera.com>

inline is part of c99

We do have.. excessive amounts of inline, incidentally. :)

49:   #ifndef PTR_HASH_HASHFUN_DEFINED   #define PTR_HASH_HASHFUN_DEFINED    - static INLINE PIKE_HASH_T PIKE_UNUSED_ATTRIBUTE ptr_hashfun(void * ptr) { + static inline PIKE_HASH_T PIKE_UNUSED_ATTRIBUTE ptr_hashfun(void * ptr) {    PIKE_HASH_T q = (size_t)((char*)ptr - (char*)0);    q ^= (q >> 20) ^ (q >> 12);    return q ^ (q >> 7) ^ (q >> 4);   }    - static INLINE size_t ptr_hash_find_hashsize(size_t size) { + static inline size_t ptr_hash_find_hashsize(size_t size) {    if (size & (size-1)) {    size |= size >> 1;    size |= size >> 2;