| /redis-3.2.3/src/ |
| H A D | object.c | 98 if (value >= 0 && value < OBJ_SHARED_INTEGERS) { in createStringObjectFromLongLong() 102 if (value >= LONG_MIN && value <= LONG_MAX) { in createStringObjectFromLongLong() 362 long value; in tryObjectEncoding() local 538 double value; in getDoubleFromObject() local 542 value = 0; in getDoubleFromObject() 551 (value == HUGE_VAL || value == -HUGE_VAL || value == 0)) || in getDoubleFromObject() 561 *target = value; in getDoubleFromObject() 566 double value; in getDoubleFromObjectOrReply() local 584 value = 0; in getLongDoubleFromObject() 621 value = 0; in getLongLongFromObject() [all …]
|
| H A D | t_list.c | 44 value = getDecodedObject(value); in listTypePush() 59 robj *value = NULL; in listTypePop() local 65 if (!value) in listTypePop() 71 return value; in listTypePop() 127 robj *value = NULL; in listTypeGet() local 130 value = createStringObject((char *)entry->entry.value, in listTypeGet() 138 return value; in listTypeGet() 143 value = getDecodedObject(value); in listTypeInsert() 309 robj *value = NULL; in lindexCommand() local 318 value = createStringObject((char*)entry.value,entry.sz); in lindexCommand() [all …]
|
| H A D | adlist.c | 80 list *listAddNodeHead(list *list, void *value) in listAddNodeHead() argument 86 node->value = value; in listAddNodeHead() 106 list *listAddNodeTail(list *list, void *value) in listAddNodeTail() argument 112 node->value = value; in listAddNodeTail() 131 node->value = value; in listInsertNode() 169 if (list->free) list->free(node->value); in listDelNode() 255 void *value; in listDup() local 258 value = copy->dup(node->value); in listDup() 259 if (value == NULL) { in listDup() 264 value = node->value; in listDup() [all …]
|
| H A D | intset.c | 138 if (value > cur) { in intsetSearch() 140 } else if (value < cur) { in intsetSearch() 147 if (value == cur) { in intsetSearch() 161 int prepend = value < 0 ? 1 : 0; in intsetUpgradeAndAdd() 175 _intsetSet(is,0,value); in intsetUpgradeAndAdd() 219 if (intsetSearch(is,value,&pos)) { in intsetAdd() 228 _intsetSet(is,pos,value); in intsetAdd() 268 *value = _intsetGet(is,pos); in intsetGet() 320 uint64_t value; in createSet() local 327 value = rand() & mask; in createSet() [all …]
|
| H A D | util.c | 297 value = svalue; in ll2string() 309 while (value >= 100) { in ll2string() 311 value /= 100; in ll2string() 318 if (value < 10) { in ll2string() 345 if (value != NULL) *value = 0; in string2ll() 363 *value = 0; in string2ll() 388 if (value != NULL) *value = -v; in string2ll() 392 if (value != NULL) *value = v; in string2ll() 416 if (isnan(value)) { in d2string() 419 if (value < 0) in d2string() [all …]
|
| H A D | t_hash.c | 119 robj *value = NULL; in hashTypeGetObject() local 143 return value; in hashTypeGetObject() 199 value = getDecodedObject(value); in hashTypeSet() 452 value = tryObjectEncoding(value); in hashTypeConvertZiplist() 552 value = 0; in hincrbyCommand() 555 oldvalue = value; in hincrbyCommand() 561 value += incr; in hincrbyCommand() 586 value = 0; in hincrbyfloatCommand() 589 value += incr; in hincrbyfloatCommand() 633 robj *value; in addHashFieldToReply() local [all …]
|
| H A D | t_string.c | 187 sds value = c->argv[3]->ptr; in setrangeCommand() local 233 if (sdslen(value) > 0) { in setrangeCommand() 235 memcpy((char*)o->ptr+offset,value,sdslen(value)); in setrangeCommand() 342 long long value, oldvalue; in incrDecrCommand() local 349 oldvalue = value; in incrDecrCommand() 355 value += incr; in incrDecrCommand() 358 (value < 0 || value >= OBJ_SHARED_INTEGERS) && in incrDecrCommand() 359 value >= LONG_MIN && value <= LONG_MAX) in incrDecrCommand() 402 long double incr, value; in incrbyfloatCommand() local 411 value += incr; in incrbyfloatCommand() [all …]
|
| H A D | sparkline.c | 65 void sparklineSequenceAddSample(struct sequence *seq, double value, char *label) { in sparklineSequenceAddSample() argument 68 seq->min = seq->max = value; in sparklineSequenceAddSample() 70 if (value < seq->min) seq->min = value; in sparklineSequenceAddSample() 71 else if (value > seq->max) seq->max = value; in sparklineSequenceAddSample() 74 seq->samples[seq->length].value = value; in sparklineSequenceAddSample() 118 double relval = s->value - seq->min; in sparklineRenderRange()
|
| H A D | ziplist.c | 329 long long value; in zipTryEncoding() local 335 if (value >= 0 && value <= 12) { in zipTryEncoding() 337 } else if (value >= INT8_MIN && value <= INT8_MAX) { in zipTryEncoding() 339 } else if (value >= INT16_MIN && value <= INT16_MAX) { in zipTryEncoding() 341 } else if (value >= INT24_MIN && value <= INT24_MAX) { in zipTryEncoding() 343 } else if (value >= INT32_MIN && value <= INT32_MAX) { in zipTryEncoding() 348 *v = value; in zipTryEncoding() 362 i16 = value; in zipSaveInteger() 370 i32 = value; in zipSaveInteger() 374 i64 = value; in zipSaveInteger() [all …]
|
| H A D | zipmap.c | 323 if (value) { in zipmapNext() 324 *value = zm+1; in zipmapNext() 326 *value += ZIPMAP_LEN_BYTES(*vlen); in zipmapNext() 340 *value = p + ZIPMAP_LEN_BYTES(*vlen) + 1; in zipmapGet() 436 unsigned char *value; in zipmapTest() local 441 if (zipmapGet(zm,buf,512,&value,&vlen)) { in zipmapTest() 443 vlen, vlen, value); in zipmapTest() 449 unsigned char *value; in zipmapTest() local 452 if (zipmapGet(zm,(unsigned char*) "foo",3,&value,&vlen)) { in zipmapTest() 454 vlen, vlen, value); in zipmapTest() [all …]
|
| H A D | util.h | 41 int ll2string(char *s, size_t len, long long value); 42 int string2ll(const char *s, size_t slen, long long *value); 43 int string2l(const char *s, size_t slen, long *value); 44 int d2string(char *buf, size_t len, double value);
|
| H A D | quicklist.c | 544 unsigned char *value; in quicklistAppendValuesFromZiplist() local 551 if (!value) { in quicklistAppendValuesFromZiplist() 1288 unsigned char *value; in quicklistRotate() local 1295 if (!value) { in quicklistRotate() 1953 entry.value); in quicklistTest() 1957 entry.value); in quicklistTest() 1961 entry.value); in quicklistTest() 1965 entry.value); in quicklistTest() 1969 entry.value); in quicklistTest() 1973 entry.value); in quicklistTest() [all …]
|
| H A D | intset.h | 42 intset *intsetAdd(intset *is, int64_t value, uint8_t *success); 43 intset *intsetRemove(intset *is, int64_t value, int *success); 44 uint8_t intsetFind(intset *is, int64_t value); 46 uint8_t intsetGet(intset *is, uint32_t pos, int64_t *value);
|
| H A D | adlist.h | 39 void *value; member 62 #define listNodeValue(n) ((n)->value) 75 list *listAddNodeHead(list *list, void *value); 76 list *listAddNodeTail(list *list, void *value); 77 list *listInsertNode(list *list, listNode *old_node, void *value, int after);
|
| H A D | quicklist.h | 94 unsigned char *value; member 124 int quicklistPushHead(quicklist *quicklist, void *value, const size_t sz); 125 int quicklistPushTail(quicklist *quicklist, void *value, const size_t sz); 126 void quicklistPush(quicklist *quicklist, void *value, const size_t sz, 134 void *value, const size_t sz); 136 void *value, const size_t sz);
|
| H A D | rdb.c | 178 if (value >= -(1<<7) && value <= (1<<7)-1) { in rdbEncodeInteger() 180 enc[1] = value&0xFF; in rdbEncodeInteger() 182 } else if (value >= -(1<<15) && value <= (1<<15)-1) { in rdbEncodeInteger() 184 enc[1] = value&0xFF; in rdbEncodeInteger() 185 enc[2] = (value>>8)&0xFF; in rdbEncodeInteger() 187 } else if (value >= -((long long)1<<31) && value <= ((long long)1<<31)-1) { in rdbEncodeInteger() 189 enc[1] = value&0xFF; in rdbEncodeInteger() 242 long long value; in rdbTryIntegerEncoding() local 248 ll2string(buf,32,value); in rdbTryIntegerEncoding() 1101 o->ptr = ziplistPush(o->ptr, value->ptr, sdslen(value->ptr), ZIPLIST_TAIL); in rdbLoadObject() [all …]
|
| H A D | bitops.c | 230 value = (value<<1) | bitval; in getUnsignedBitfield() 233 return value; in getUnsignedBitfield() 237 int64_t value; in getSignedBitfield() local 248 value = conv.i; in getSignedBitfield() 255 return value; in getSignedBitfield() 283 int64_t maxincr = max-value; in checkUnsignedBitfieldOverflow() 284 int64_t minincr = -value; in checkUnsignedBitfieldOverflow() 310 uint64_t res = value+incr; in checkUnsignedBitfieldOverflow() 325 int64_t maxincr = max-value; in checkSignedBitfieldOverflow() 326 int64_t minincr = min-value; in checkSignedBitfieldOverflow() [all …]
|
| /redis-3.2.3/deps/lua/src/ |
| H A D | lobject.h | 71 #define TValuefields Value value; int tt 91 #define gcvalue(o) check_exp(iscollectable(o), (o)->value.gc) 92 #define pvalue(o) check_exp(ttislightuserdata(o), (o)->value.p) 93 #define nvalue(o) check_exp(ttisnumber(o), (o)->value.n) 99 #define hvalue(o) check_exp(ttistable(o), &(o)->value.gc->h) 100 #define bvalue(o) check_exp(ttisboolean(o), (o)->value.b) 101 #define thvalue(o) check_exp(ttisthread(o), &(o)->value.gc->th) 113 ((ttype(obj) == (obj)->value.gc->gch.tt) && !isdead(g, (obj)->value.gc))) 150 i_o->value.gc=cast(GCObject *, (x)); i_o->tt=LUA_TTABLE; \ 163 o1->value = o2->value; o1->tt=o2->tt; \ [all …]
|
| H A D | lua_struct.c | 172 Uinttype value; in putinteger() local 175 value = (Uinttype)(Inttype)n; in putinteger() 177 value = (Uinttype)n; in putinteger() 181 buff[i] = (value & 0xff); in putinteger() 182 value >>= 8; in putinteger() 188 buff[i] = (value & 0xff); in putinteger() 189 value >>= 8; in putinteger()
|
| /redis-3.2.3/tests/unit/ |
| H A D | bitfield.tcl | 103 set value [expr {($min*2)+[randomInt $range2]}] 105 if {$value > 9223372036854775807} { 106 set value 9223372036854775807 108 if {$value < -9223372036854775808} { 109 set value -9223372036854775808 119 if {$value > $max || $value < $min} {set overflow 1} 157 if {$value > 9223372036854775807} { 158 set value 9223372036854775807 160 if {$value < -9223372036854775808} { 161 set value -9223372036854775808 [all …]
|
| /redis-3.2.3/tests/support/ |
| H A D | test.tcl | 16 proc assert_match {pattern value} { argument 17 if {![string match $pattern $value]} { 18 error "assertion:Expected '$value' to match '$pattern'" 22 proc assert_equal {expected value {detail ""}} { 23 if {$expected ne $value} { 27 error "assertion:Expected '$value' to be equal to '$expected'$detail"
|
| /redis-3.2.3/utils/ |
| H A D | speed-regression.tcl | 53 lassign [split $line ","] key value 55 set value [string range $value 1 end-1] 57 return $value 66 lassign [split $line ","] key value
|
| /redis-3.2.3/deps/lua/test/ |
| H A D | trace-globals.lua | 23 local set=function (t,name,value) 24 log(name,g[name],value) 25 g[name]=value
|
| /redis-3.2.3/tests/unit/type/ |
| H A D | hash.tcl | 212 test {HDEL and return value} { 229 test {HDEL - more than a single value} { 289 test {HINCRBY over 32bit value} { 359 test {HINCRBYFLOAT over 32bit value} { 457 set value [randomValue] 458 r hset hash $field $value 459 set hash($field) $value 480 set value [randomValue] 481 r hset hash $field $value 482 set hash($field) $value [all …]
|
| /redis-3.2.3/tests/cluster/tests/ |
| H A D | 04-resharding.tcl | 117 foreach {key value} [array get content] { 118 assert {[$cluster lrange $key 0 -1] eq $value} 135 foreach {key value} [array get content] { 136 assert {[$cluster lrange $key 0 -1] eq $value}
|