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

version» Context lines:

pike.git/src/post_modules/CritBit/critbit/key_bignum.h:39:      // 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 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;    }   }      #define CB_WIDTH(s) (sizeof(cb_char)*8)   #define CB_LENGTH(str) 0   #define CB_SIZE(key) (-abs(K2G(key)->_mp_size))   #define CB_GET_BIT(str, size) \    (BITN(cb_char, CB_GET_CHAR((str), (size).chars), (size).bits))   #define CB_COUNT_PREFIX(s1, s2, n) \