pike.git / src / post_modules / CritBit / critbit / key_bignum.h

version» Context lines:

pike.git/src/post_modules/CritBit/critbit/key_bignum.h:10:   #ifdef cb_string   # undef cb_string   #endif   #define cb_string CB_NAME(string)      #ifdef cb_char   # undef cb_char   #endif   #define cb_char CB_NAME(char)    - static CB_INLINE unsigned INT32 gclz(mp_limb_t a) { + static inline unsigned INT32 gclz(mp_limb_t a) {    if (sizeof(mp_limb_t) == 8) {    return clz64((unsigned INT64)a);    } else {    return clz32((unsigned INT32)a);    }   }      #define O2G(o) ((MP_INT*)(o->storage))   #define K2G(k) ((MP_INT*)((k).str->storage))   
pike.git/src/post_modules/CritBit/critbit/key_bignum.h:34:    do { CB_ADD_KEY_REF(x); \    CB_FREE_KEY((node)->key); (node)->key = (x); } while(0)      #define CB_GC_CHECK_KEY(key) gc_check((key).str)   #define CB_GC_RECURSE_KEY(key) gc_recurse_object((key).str)      // int mpz_cmp (mpz_t op1, mpz_t op2)   #define CB_KEY_EQ(k1, k2) ( (k1).str == (k2).str || !mpz_cmp(K2G(k1), K2G(k2)) )   #define CB_KEY_LT(k1, k2) ( (k1).str != (k2).str && mpz_cmp(K2G(k1), K2G(k2)) < 0 )    - static CB_INLINE mp_limb_t CB_GET_CHAR(cb_string s, ptrdiff_t n) { + static inline mp_limb_t CB_GET_CHAR(cb_string s, ptrdiff_t n) {    MP_INT * i = O2G(s);       n += abs(i->_mp_size);    if (n > 0) {    //fprintf(stderr, ">> %lld %lld\n", n, i->_mp_d[abs(n)]);    return i->_mp_d[abs(i->_mp_size)-n];    } else {    //fprintf(stderr, "»» %lld %lld\n", n, i->_mp_d[abs(n)]);    return 0;    }