Home
last modified time | relevance | path

Searched refs:max (Results 1 – 25 of 42) sorted by relevance

12

/redis-3.2.3/
H A Dredis.conf839 slowlog-max-len 128
913 hash-max-ziplist-entries 512
914 hash-max-ziplist-value 64
929 list-max-ziplist-size -2
952 set-max-intset-entries 512
957 zset-max-ziplist-entries 128
958 zset-max-ziplist-value 64
972 hll-sparse-max-bytes 3000
/redis-3.2.3/tests/unit/
H A Dlatency-monitor.tcl17 set max 450
20 assert {$latency >= $min && $latency <= $max}
22 incr max 100
29 lassign $event eventname time latency max
31 assert {$max >= 450 & $max <= 650}
H A Dbitfield.tcl99 set max [expr {$min+$range-1}]
119 if {$value > $max || $value < $min} {set overflow 1}
120 if {($value + $increment) > $max} {set overflow 1}
151 set max [expr {$min+$range-1}]
H A Dbitops.tcl157 test {BITOP shorter keys are zero-padded to the key with max length} {
322 set max 524288; # 64k
326 set pos [randomInt $max]
337 set max 524288; # 64k
338 set first_zero_pos $max
342 set pos [randomInt $max]
H A Dslowlog.tcl14 test {SLOWLOG - max entries is correctly handled} {
/redis-3.2.3/deps/geohash-int/
H A Dgeohash.c115 long_range->max = GEO_LONG_MAX; in geohashGetCoordRange()
117 lat_range->max = GEO_LAT_MAX; in geohashGetCoordRange()
136 if (latitude < lat_range->min || latitude > lat_range->max || in geohashEncode()
137 longitude < long_range->min || longitude > long_range->max) { in geohashEncode()
142 (latitude - lat_range->min) / (lat_range->max - lat_range->min); in geohashEncode()
175 double lat_scale = lat_range.max - lat_range.min; in geohashDecode()
176 double long_scale = long_range.max - long_range.min; in geohashDecode()
186 area->latitude.max = in geohashDecode()
190 area->longitude.max = in geohashDecode()
208 xy[0] = (area->longitude.min + area->longitude.max) / 2; in geohashDecodeAreaToLongLat()
[all …]
H A Dgeohash_helper.c154 if (geohashGetDistance(longitude,latitude,longitude,north.latitude.max) in geohashGetAreasByRadius()
158 if (geohashGetDistance(longitude,latitude,east.longitude.max,latitude) in geohashGetAreasByRadius()
177 if (area.latitude.max > max_lat) { in geohashGetAreasByRadius()
187 if (area.longitude.max > max_lon) { in geohashGetAreasByRadius()
H A Dgeohash.h44 #define RANGEISZERO(r) (!(r).max && !(r).min)
73 double max; member
/redis-3.2.3/src/
H A Dlatency.c107 ts->max = 0; in latencyAddSample()
123 if (latency > ts->max) ts->max = latency; in latencyAddSample()
164 ls->all_time_high = ts ? ts->max : 0; in analyzeLatencyForEvent()
167 ls->max = 0; in analyzeLatencyForEvent()
183 if (ls->max < ts->samples[j].latency) in analyzeLatencyForEvent()
184 ls->max = ts->samples[j].latency; in analyzeLatencyForEvent()
271 (unsigned long) ts->max); in createLatencyReport()
510 addReplyLongLong(c,ts->max); in latencyCommandReplyWithLatestEvents()
520 uint32_t min = 0, max = 0; in latencyCommandGenSparkeline() local
532 if (ts->samples[i].latency > max) max = ts->samples[i].latency; in latencyCommandGenSparkeline()
[all …]
H A Dsparkline.c68 seq->min = seq->max = value; in sparklineSequenceAddSample()
71 else if (value > seq->max) seq->max = value; in sparklineSequenceAddSample()
99 double relmax = seq->max - seq->min; in sparklineRenderRange()
H A Dlatency.h49 uint32_t max; /* Max latency observed for this event. */ member
58 uint32_t max; /* Max of current samples. */ member
H A Dgeo.c225 int geoGetPointsInRange(robj *zobj, double min, double max, double lon, double lat, double radius, … in geoGetPointsInRange() argument
228 zrangespec range = { .min = min, .max = max, .minex = 0, .maxex = 1 }; in geoGetPointsInRange()
291 void scoresOfGeoHashBox(GeoHashBits hash, GeoHashFix52Bits *min, GeoHashFix52Bits *max) { in scoresOfGeoHashBox() argument
314 *max = geohashAlign52Bits(hash); in scoresOfGeoHashBox()
321 GeoHashFix52Bits min, max; in membersOfGeoHashBox() local
323 scoresOfGeoHashBox(hash,&min,&max); in membersOfGeoHashBox()
324 return geoGetPointsInRange(zobj, min, max, lon, lat, radius, ga); in membersOfGeoHashBox()
698 r[0].max = 180; in geohashCommand()
700 r[1].max = 90; in geohashCommand()
H A Dhyperloglog.c1044 int hllMerge(uint8_t *max, robj *hll) { in hllMerge() argument
1053 if (val > max[i]) max[i] = val; in hllMerge()
1074 if (regval > max[i]) max[i] = regval; in hllMerge()
1205 uint8_t max[HLL_HDR_SIZE+HLL_REGISTERS], *registers; in pfcountCommand() local
1209 memset(max,0,sizeof(max)); in pfcountCommand()
1210 hdr = (struct hllhdr*) max; in pfcountCommand()
1212 registers = max + HLL_HDR_SIZE; in pfcountCommand()
1286 uint8_t max[HLL_REGISTERS]; in pfmergeCommand() local
1293 memset(max,0,sizeof(max)); in pfmergeCommand()
1302 if (hllMerge(max,o) == C_ERR) { in pfmergeCommand()
[all …]
H A Dt_zset.c217 return spec->maxex ? (value < spec->max) : (value <= spec->max); in zslValueLteMax()
225 if (range->min > range->max || in zslIsInRange()
311 (range->maxex ? x->score < range->max : x->score <= range->max)) in zslDeleteRangeByScore()
451 spec->max = (long)max->ptr; in zslParseRange()
454 spec->max = strtod((char*)max->ptr+1,&eptr); in zslParseRange()
458 spec->max = strtod((char*)max->ptr,&eptr); in zslParseRange()
521 spec->min = spec->max = NULL; in zslParseLexRange()
523 zslParseLexRangeItem(max, &spec->max, &spec->maxex) == C_ERR) { in zslParseLexRange()
525 if (spec->max) decrRefCount(spec->max); in zslParseLexRange()
536 decrRefCount(spec->max); in zslFreeLexRange()
[all …]
H A Dbitops.c282 uint64_t max = (bits == 64) ? UINT64_MAX : (((uint64_t)1<<bits)-1); in checkUnsignedBitfieldOverflow() local
283 int64_t maxincr = max-value; in checkUnsignedBitfieldOverflow()
286 if (value > max || (incr > 0 && incr > maxincr)) { in checkUnsignedBitfieldOverflow()
291 *limit = max; in checkUnsignedBitfieldOverflow()
319 int64_t max = (bits == 64) ? INT64_MAX : (((int64_t)1<<(bits-1))-1); in checkSignedBitfieldOverflow() local
320 int64_t min = (-max)-1; in checkSignedBitfieldOverflow()
325 int64_t maxincr = max-value; in checkSignedBitfieldOverflow()
328 if (value > max || (bits != 64 && incr > maxincr) || (value >= 0 && incr > 0 && incr > maxincr)) in checkSignedBitfieldOverflow()
334 *limit = max; in checkSignedBitfieldOverflow()
H A Dsparkline.h43 double min, max; member
H A Dintset.c116 int min = 0, max = intrev32ifbe(is->length)-1, mid = -1; in intsetSearch() local
135 while(max >= min) { in intsetSearch()
136 mid = ((unsigned int)min + (unsigned int)max) >> 1; in intsetSearch()
141 max = mid-1; in intsetSearch()
H A Dredis-cli.c1465 long long start, latency, min = 0, max = 0, tot = 0, count = 0; in latencyMode() local
1484 min = max = tot = latency; in latencyMode()
1488 if (latency > max) max = latency; in latencyMode()
1493 min, max, avg, count); in latencyMode()
1499 min = max = tot = count = 0; in latencyMode()
1544 if (samples[j].max == 0) break; /* Last sample. */ in showLatencyDistSamples()
1629 if (samples[j].max == 0 || latency <= samples[j].max) { in latencyDistMode()
2391 long long powerLawRand(long long min, long long max, double alpha) { in powerLawRand() argument
2394 max += 1; in powerLawRand()
2397 ((pow(max,alpha+1) - pow(min,alpha+1))*r + pow(min,alpha+1)), in powerLawRand()
[all …]
/redis-3.2.3/utils/hyperloglog/
H A Dhll-gnuplot-graph.rb21 def run_experiment(r,seed,max,step) argument
26 while i < max do
42 def filter_samples(numsets,max,step,filter) argument
46 dataset[i] = run_experiment(r,i,max,step)
/redis-3.2.3/tests/unit/type/
H A Dzset.tcl442 proc remrangebyscore {min max} {
504 proc remrangebyrank {min max} {
803 set max [expr rand()]
804 if {$min > $max} {
806 set min $max
807 set max $aux
861 if {$score < $max} {
867 if {$score <= $max} {
886 set max [randstring 0 30 alpha]
890 if {$maxinc} {set cmax "\[$max"} else {set cmax "($max"}
[all …]
H A Dlist-2.tcl29 set max [expr {$min+int(rand()*$startlen)}]
32 set mylist [lrange $mylist $min $max]
33 r ltrim mylist $min $max
/redis-3.2.3/deps/lua/src/
H A Dltablib.c57 lua_Number max = 0; in maxn() local
64 if (v > max) max = v; in maxn()
67 lua_pushnumber(L, max); in maxn()
H A Dlua_cjson.c221 int min, int max) in json_integer_option() argument
228 snprintf(errmsg, sizeof(errmsg), "expected integer between %d and %d", min, max); in json_integer_option()
229 luaL_argcheck(l, min <= value && value <= max, 1, errmsg); in json_integer_option()
496 int max; in lua_array_length() local
499 max = 0; in lua_array_length()
510 if (k > max) in lua_array_length()
511 max = k; in lua_array_length()
525 max > items * cfg->encode_sparse_ratio && in lua_array_length()
526 max > cfg->encode_sparse_safe) { in lua_array_length()
533 return max; in lua_array_length()
H A Dlua_cmsgpack.c424 int count = 0, max = 0; in table_is_an_array() local
451 max = (n > max ? n : max); in table_is_an_array()
460 return max == count; in table_is_an_array()
/redis-3.2.3/tests/support/
H A Dutil.tcl1 proc randstring {min max {type binary}} {
95 proc randomInt {max} { argument
100 proc randomSignedInt {max} { argument
101 set i [randomInt $max]

12