Lines Matching refs:zn
59 zskiplistNode *zn = zmalloc(sizeof(*zn)+level*sizeof(struct zskiplistLevel)); in zslCreateNode() local
60 zn->score = score; in zslCreateNode()
61 zn->obj = obj; in zslCreateNode()
62 return zn; in zslCreateNode()
2537 zskiplistNode *zn; in zcountCommand() local
2541 zn = zslFirstInRange(zsl, &range); in zcountCommand()
2544 if (zn != NULL) { in zcountCommand()
2545 rank = zslGetRank(zsl, zn->score, zn->obj); in zcountCommand()
2549 zn = zslLastInRange(zsl, &range); in zcountCommand()
2552 if (zn != NULL) { in zcountCommand()
2553 rank = zslGetRank(zsl, zn->score, zn->obj); in zcountCommand()
2615 zskiplistNode *zn; in zlexcountCommand() local
2619 zn = zslFirstInLexRange(zsl, &range); in zlexcountCommand()
2622 if (zn != NULL) { in zlexcountCommand()
2623 rank = zslGetRank(zsl, zn->score, zn->obj); in zlexcountCommand()
2627 zn = zslLastInLexRange(zsl, &range); in zlexcountCommand()
2630 if (zn != NULL) { in zlexcountCommand()
2631 rank = zslGetRank(zsl, zn->score, zn->obj); in zlexcountCommand()