Home
last modified time | relevance | path

Searched refs:score (Results 1 – 23 of 23) sorted by relevance

/f-stack/app/redis-5.0.5/src/
H A Dt_zset.c74 zn->score = score; in zslCreateNode()
143 (x->level[i].forward->score < score || in zslInsert()
225 (x->level[i].forward->score < score || in zslDelete()
484 (x->level[i].forward->score < score || in zslGetRank()
485 (x->level[i].forward->score == score && in zslGetRank()
2005 val->score = it->sl.node->score; in zuiNext()
2285 score = src[0].weight * zval.score; in zunionInterGenericCommand()
2286 if (isnan(score)) score = 0; in zunionInterGenericCommand()
2332 score = src[i].weight * zval.score; in zunionInterGenericCommand()
2333 if (isnan(score)) score = 0; in zunionInterGenericCommand()
[all …]
H A Dgeo.c114 double score = 0; in longLatFromMember() local
117 if (!decodeGeohash(score, xy)) return C_ERR; in longLatFromMember()
209 gp->score = score; in geoAppendIfWithinRadius()
238 double score = 0; in geoGetPointsInRange() local
247 score = zzlGetScore(sptr); in geoGetPointsInRange()
441 argv[2+i*2] = score; in geoaddCommand()
649 double score = storedist ? gp->dist : gp->score; in georadiusGeneric() local
711 double score; in geohashCommand() local
723 if (!decodeGeohash(score,xy)) { in geohashCommand()
764 double score; in geoposCommand() local
[all …]
H A Dsort.c144 if (so1->u.score > so2->u.score) { in sortCompare()
146 } else if (so1->u.score < so2->u.score) { in sortCompare()
362 vector[j].u.score = 0; in sortCommand()
376 vector[j].u.score = 0; in sortCommand()
386 vector[j].u.score = 0; in sortCommand()
422 vector[j].u.score = 0; in sortCommand()
439 vector[j].u.score = 0; in sortCommand()
468 vector[j].u.score = strtod(byval->ptr,&eptr); in sortCommand()
470 isnan(vector[j].u.score)) in sortCommand()
478 vector[j].u.score = (long)byval->ptr; in sortCommand()
H A Dgeo.h12 double score; member
H A Ddefrag.c213 double *zslDefrag(zskiplist *zsl, double score, sds oldele, sds newele) { in zslDefrag() argument
226 (x->level[i].forward->score < score || in zslDefrag()
227 (x->level[i].forward->score == score && in zslDefrag()
235 serverAssert(x && score == x->score && x->ele==oldele); in zslDefrag()
243 return &newx->score; in zslDefrag()
H A Dredismodule.h246 int REDISMODULE_API_FUNC(RedisModule_ZsetAdd)(RedisModuleKey *key, double score, RedisModuleString …
247 int REDISMODULE_API_FUNC(RedisModule_ZsetIncrby)(RedisModuleKey *key, double score, RedisModuleStri…
248 …MODULE_API_FUNC(RedisModule_ZsetScore)(RedisModuleKey *key, RedisModuleString *ele, double *score);
255 …ing *REDISMODULE_API_FUNC(RedisModule_ZsetRangeCurrentElement)(RedisModuleKey *key, double *score);
H A Dmodule.c1851 if (zsetAdd(key->value,score,ele->ptr,&flags,NULL) == 0) { in RM_ZsetAdd()
1879 if (zsetAdd(key->value,score,ele->ptr,&flags,newscore) == 0) { in RM_ZsetIncrby()
1929 int RM_ZsetScore(RedisModuleKey *key, RedisModuleString *ele, double *score) { in RM_ZsetScore() argument
1932 if (zsetScore(key->value,ele->ptr,score) == C_ERR) return REDISMODULE_ERR; in RM_ZsetScore()
2096 if (score) { in RM_ZsetRangeCurrentElement()
2098 *score = zzlGetScore(sptr); in RM_ZsetRangeCurrentElement()
2103 if (score) *score = ln->score; in RM_ZsetRangeCurrentElement()
2135 if (!zslValueLteMax(score,&key->zrs)) { in RM_ZsetRangeNext()
2157 !zslValueLteMax(next->score,&key->zrs)) in RM_ZsetRangeNext()
2198 if (!zslValueGteMin(score,&key->zrs)) { in RM_ZsetRangePrev()
[all …]
H A Dserver.h804 double score; member
1323 double score; member
1676 zskiplistNode *zslInsert(zskiplist *zsl, double score, sds ele);
1677 unsigned char *zzlInsert(unsigned char *zl, sds ele, double score);
1678 int zslDelete(zskiplist *zsl, double score, sds ele, zskiplistNode **node);
1689 int zsetScore(robj *zobj, sds member, double *score);
1690 unsigned long zslGetRank(zskiplist *zsl, double score, sds o);
1691 int zsetAdd(robj *zobj, double score, sds ele, int *flags, double *newscore);
H A Daof.c1012 double score; in rewriteSortedSetObject() local
1021 score = zzlGetScore(sptr); in rewriteSortedSetObject()
1031 if (rioWriteBulkDouble(r,score) == 0) return 0; in rewriteSortedSetObject()
1048 double *score = dictGetVal(de); in rewriteSortedSetObject() local
1058 if (rioWriteBulkDouble(r,*score) == 0) return 0; in rewriteSortedSetObject()
H A Ddebug.c156 double score; in xorObjectDigest() local
165 score = zzlGetScore(sptr); in xorObjectDigest()
175 snprintf(buf,sizeof(buf),"%.17g",score); in xorObjectDigest()
187 double *score = dictGetVal(de); in xorObjectDigest() local
189 snprintf(buf,sizeof(buf),"%.17g",*score); in xorObjectDigest()
H A Drdb.c845 if ((n = rdbSaveBinaryDoubleValue(rdb,zn->score)) == -1) in rdbSaveObject()
1467 double score; in rdbLoadObject() local
1474 if (rdbLoadBinaryDoubleValue(rdb,&score) == -1) return NULL; in rdbLoadObject()
1476 if (rdbLoadDoubleValue(rdb,&score) == -1) return NULL; in rdbLoadObject()
1482 znode = zslInsert(zs->zsl,score,sdsele); in rdbLoadObject()
1483 dictAdd(zs->dict,sdsele,&znode->score); in rdbLoadObject()
H A Dredis-cli.c2428 int score = 0, i, j; in clusterManagerGetAntiAffinityScore() local
2468 if (types[0] == 'm') score += (10000 * (typeslen - 1)); in clusterManagerGetAntiAffinityScore()
2469 else score += (1 * typeslen); in clusterManagerGetAntiAffinityScore()
2489 return score; in clusterManagerGetAntiAffinityScore()
2496 int score = clusterManagerGetAntiAffinityScore(ipnodes, ip_count, in clusterManagerOptimizeAntiAffinity() local
2498 if (score == 0) goto cleanup; in clusterManagerOptimizeAntiAffinity()
2510 score = clusterManagerGetAntiAffinityScore(ipnodes, in clusterManagerOptimizeAntiAffinity()
2514 if (score == 0) break; // Optimal anti affinity reached in clusterManagerOptimizeAntiAffinity()
2548 if (new_score > score) { in clusterManagerOptimizeAntiAffinity()
2557 int perfect = (score == 0); in clusterManagerOptimizeAntiAffinity()
[all …]
/f-stack/app/redis-5.0.5/tests/unit/type/
H A Dzset.tcl4 foreach {score entry} $items {
5 r zadd $key $score $entry
779 assert {$score >= $oldscore}
780 set oldscore $score
807 set score [expr rand()]
808 lappend aux $score
822 set score [expr rand()]
823 lappend aux $score
938 if {$score < $min || $score > $max} {
944 if {$score <= $min || $score >= $max} {
[all …]
/f-stack/app/redis-5.0.5/src/modules/
H A Dhelloworld.c396 double score; in HelloZsumRange_RedisCommand() local
397 RedisModuleString *ele = RedisModule_ZsetRangeCurrentElement(key,&score); in HelloZsumRange_RedisCommand()
399 scoresum_a += score; in HelloZsumRange_RedisCommand()
406 double score; in HelloZsumRange_RedisCommand() local
407 RedisModuleString *ele = RedisModule_ZsetRangeCurrentElement(key,&score); in HelloZsumRange_RedisCommand()
409 scoresum_b += score; in HelloZsumRange_RedisCommand()
448 double score; in HelloLexRange_RedisCommand() local
449 RedisModuleString *ele = RedisModule_ZsetRangeCurrentElement(key,&score); in HelloLexRange_RedisCommand()
/f-stack/freebsd/contrib/zstd/lib/dictBuilder/
H A Dfastcover.c166 activeSegment.score = 0; in FASTCOVER_selectSegment()
177 activeSegment.score += freqs[idx]; in FASTCOVER_selectSegment()
189 activeSegment.score -= freqs[delIndex]; in FASTCOVER_selectSegment()
196 if (activeSegment.score > bestSegment.score) { in FASTCOVER_selectSegment()
422 if (segment.score == 0) { in FASTCOVER_buildDictionary()
H A Dcover.h48 U32 score; member
H A Dcover.c421 activeSegment.score = 0; in COVER_selectSegment()
435 activeSegment.score += freqs[newDmer]; in COVER_selectSegment()
450 activeSegment.score -= freqs[delDmer]; in COVER_selectSegment()
455 if (activeSegment.score > bestSegment.score) { in COVER_selectSegment()
702 if (segment.score == 0) { in COVER_buildDictionary()
/f-stack/freebsd/contrib/device-tree/Bindings/arm/
H A Dcpu-capacity.txt37 max frequency (with caches enabled). The obtained DMIPS score is then divided
40 score obtained in the system.
/f-stack/app/redis-5.0.5/deps/jemalloc/build-aux/
H A Dconfig.sub308 | score \
1568 score-*)
/f-stack/dpdk/doc/guides/contributing/
H A Dvulnerability.rst79 The security team calculates the severity score with
82 and agrees on the score with the reporter.
97 * CVSS severity and score
/f-stack/freebsd/kern/
H A Dsched_ule.c1574 int score; in sched_priority() local
1592 score = imax(0, sched_interact_score(td) + td->td_proc->p_nice); in sched_priority()
1593 if (score < sched_interact) { in sched_priority()
1596 sched_interact) * score; in sched_priority()
1599 pri, score)); in sched_priority()
/f-stack/freebsd/contrib/zstd/programs/
H A Dzstd.1.md341 Selects segments of size _k_ with highest score to put in the dictionary.
342 The score of a segment is computed by the sum of the frequencies of all the
/f-stack/app/redis-5.0.5/
H A D00-RELEASENOTES2834 introduced in Redis 5.0 RC1. Notably ZPOP* now returns score/element in reverse