| /redis-3.2.3/deps/jemalloc/test/include/test/ |
| H A D | test.h | 5 t b_ = (b); \ 20 #define assert_ptr_eq(a, b, ...) assert_cmp(void *, a, b, ==, \ argument 22 #define assert_ptr_ne(a, b, ...) assert_cmp(void *, a, b, !=, \ argument 57 #define assert_ld_eq(a, b, ...) assert_cmp(long, a, b, ==, \ argument 59 #define assert_ld_ne(a, b, ...) assert_cmp(long, a, b, !=, \ argument 61 #define assert_ld_lt(a, b, ...) assert_cmp(long, a, b, <, \ argument 63 #define assert_ld_le(a, b, ...) assert_cmp(long, a, b, <=, \ argument 65 #define assert_ld_ge(a, b, ...) assert_cmp(long, a, b, >=, \ argument 67 #define assert_ld_gt(a, b, ...) assert_cmp(long, a, b, >, \ argument 256 __func__, __FILE__, __LINE__, #a, #b, a, b); \ [all …]
|
| H A D | math.h | 56 double acu, factor, oflo, gin, term, rn, a, b, an, dif; in i_gamma() local 89 b = a + x + 1.0; in i_gamma() 94 pn[3] = x * b; in i_gamma() 99 b += 2.0; in i_gamma() 103 pn[i+4] = b * pn[i+2] - an * pn[i]; in i_gamma() 224 double e, aa, xx, c, ch, a, q, p1, p2, t, x, b, s1, s2, s3, s4, s5, s6; in pt_chi2() local 280 b = t / ch; in pt_chi2() 281 a = 0.5 * t - b * c; in pt_chi2() 291 ch += t * (1.0 + 0.5 * t * s1 - b * c * (s1 - b * (s2 - b * (s3 in pt_chi2() 292 - b * (s4 - b * (s5 - b * s6)))))); in pt_chi2()
|
| /redis-3.2.3/deps/lua/src/ |
| H A D | lua_bit.c | 52 UBits b; member 60 UBits b; in barg() local 69 b = (UBits)(bn.b >> 32); in barg() 71 b = (UBits)bn.b; in barg() 77 b = bn.b; in barg() 106 #define bshl(b, n) (b << n) argument 107 #define bshr(b, n) (b >> n) argument 108 #define bsar(b, n) ((SBits)b >> n) argument 109 #define brol(b, n) ((b << n) | (b >> (32-n))) argument 110 #define bror(b, n) ((b << (32-n)) | (b >> n)) argument [all …]
|
| H A D | luaconf.h | 281 #define lua_freeline(L,b) ((void)L, free(b)) argument 287 #define lua_freeline(L,b) { (void)L; (void)b; } argument 533 #define luai_numadd(a,b) ((a)+(b)) argument 534 #define luai_numsub(a,b) ((a)-(b)) argument 535 #define luai_nummul(a,b) ((a)*(b)) argument 536 #define luai_numdiv(a,b) ((a)/(b)) argument 537 #define luai_nummod(a,b) ((a) - floor((a)/(b))*(b)) argument 538 #define luai_numpow(a,b) (pow(a,b)) argument 540 #define luai_numeq(a,b) ((a)==(b)) argument 541 #define luai_numlt(a,b) ((a)<(b)) argument [all …]
|
| H A D | lua_cmsgpack.c | 94 unsigned char *b; member 113 buf->b = NULL; in mp_buf_new() 204 unsigned char b[9]; in mp_encode_double() local 222 unsigned char b[9]; in mp_encode_int() local 294 unsigned char b[5]; in mp_encode_array() local 303 b[2] = n & 0xff; in mp_encode_array() 310 b[4] = n & 0xff; in mp_encode_array() 317 unsigned char b[5]; in mp_encode_map() local 326 b[2] = n & 0xff; in mp_encode_map() 474 unsigned char b[1]; in mp_encode_lua_null() local [all …]
|
| H A D | lstrlib.c | 59 luaL_Buffer b; in str_reverse() local 63 luaL_pushresult(&b); in str_reverse() 71 luaL_Buffer b; in str_lower() local 76 luaL_pushresult(&b); in str_lower() 84 luaL_Buffer b; in str_upper() local 95 luaL_Buffer b; in str_rep() local 128 luaL_Buffer b; in str_char() local 148 luaL_Buffer b; in str_dump() local 287 int b = *p; in matchbalance() local 653 luaL_Buffer b; in str_gsub() local [all …]
|
| H A D | lmem.h | 19 #define luaM_reallocv(L,b,on,n,e) \ argument 21 luaM_realloc_(L, (b), (on)*(e), (n)*(e)) : \ 24 #define luaM_freemem(L, b, s) luaM_realloc_(L, (b), (s), 0) argument 25 #define luaM_free(L, b) luaM_realloc_(L, (b), sizeof(*(b)), 0) argument 26 #define luaM_freearray(L, b, n, t) luaM_reallocv(L, (b), n, 0, sizeof(t)) argument
|
| H A D | lua_struct.c | 192 luaL_addlstring(b, buff, size); in putinteger() 200 char temp = b[i]; in correctbytes() 201 b[i++] = b[size]; in correctbytes() 202 b[size] = temp; in correctbytes() 209 luaL_Buffer b; in b_pack() local 216 luaL_buffinit(L, &b); in b_pack() 230 luaL_addchar(&b, '\0'); in b_pack() 236 luaL_addlstring(&b, (char *)&f, size); in b_pack() 242 luaL_addlstring(&b, (char *)&d, size); in b_pack() 250 luaL_addlstring(&b, s, size); in b_pack() [all …]
|
| H A D | ldebug.c | 326 int b = 0; in symbexec() local 332 b = GETARG_B(i); in symbexec() 339 b = GETARG_Bx(i); in symbexec() 344 b = GETARG_sBx(i); in symbexec() 346 int dest = pc+1+b; in symbexec() 417 int dest = pc+1+b; in symbexec() 425 if (b != 0) { in symbexec() 439 if (b > 0) checkreg(pt, a+b-1); in symbexec() 443 if (b > 0) checkreg(pt, a + b); in symbexec() 466 b--; in symbexec() [all …]
|
| H A D | lopcodes.h | 89 #define SETARG_B(i,b) ((i) = (((i)&MASK0(SIZE_B,POS_B)) | \ argument 90 ((cast(Instruction, b)<<POS_B)&MASK1(SIZE_B,POS_B)))) 93 #define SETARG_C(i,b) ((i) = (((i)&MASK0(SIZE_C,POS_C)) | \ argument 94 ((cast(Instruction, b)<<POS_C)&MASK1(SIZE_C,POS_C)))) 97 #define SETARG_Bx(i,b) ((i) = (((i)&MASK0(SIZE_Bx,POS_Bx)) | \ argument 98 ((cast(Instruction, b)<<POS_Bx)&MASK1(SIZE_Bx,POS_Bx)))) 101 #define SETARG_sBx(i,b) SETARG_Bx((i),cast(unsigned int, (b)+MAXARG_sBx)) argument 104 #define CREATE_ABC(o,a,b,c) ((cast(Instruction, o)<<POS_OP) \ argument 106 | (cast(Instruction, b)<<POS_B) \
|
| H A D | lgc.h | 30 #define bitmask(b) (1<<(b)) argument 32 #define l_setbit(x,b) setbits(x, bitmask(b)) argument 33 #define resetbit(x,b) resetbits(x, bitmask(b)) argument 34 #define testbit(x,b) testbits(x, bitmask(b)) argument
|
| H A D | ltablib.c | 135 static void addfield (lua_State *L, luaL_Buffer *b, int i) { in addfield() argument 140 luaL_addvalue(b); in addfield() 145 luaL_Buffer b; in tconcat() local 152 luaL_buffinit(L, &b); in tconcat() 154 addfield(L, &b, i); in tconcat() 155 luaL_addlstring(&b, sep, lsep); in tconcat() 158 addfield(L, &b, i); in tconcat() 159 luaL_pushresult(&b); in tconcat() 178 static int sort_comp (lua_State *L, int a, int b) { in sort_comp() argument 183 lua_pushvalue(L, b-2); /* -2 to compensate function and `a' */ in sort_comp() [all …]
|
| H A D | fpconv.c | 179 char *b; in fpconv_g_fmt() local 191 b = buf; in fpconv_g_fmt() 193 *str++ = (*b == locale_decimal_point ? '.' : *b); in fpconv_g_fmt() 194 } while(*b++); in fpconv_g_fmt()
|
| /redis-3.2.3/src/ |
| H A D | sha1.c | 81 R0(a,b,c,d,e, 0); R0(e,a,b,c,d, 1); R0(d,e,a,b,c, 2); R0(c,d,e,a,b, 3); in SHA1Transform() 82 R0(b,c,d,e,a, 4); R0(a,b,c,d,e, 5); R0(e,a,b,c,d, 6); R0(d,e,a,b,c, 7); in SHA1Transform() 83 R0(c,d,e,a,b, 8); R0(b,c,d,e,a, 9); R0(a,b,c,d,e,10); R0(e,a,b,c,d,11); in SHA1Transform() 84 R0(d,e,a,b,c,12); R0(c,d,e,a,b,13); R0(b,c,d,e,a,14); R0(a,b,c,d,e,15); in SHA1Transform() 85 R1(e,a,b,c,d,16); R1(d,e,a,b,c,17); R1(c,d,e,a,b,18); R1(b,c,d,e,a,19); in SHA1Transform() 86 R2(a,b,c,d,e,20); R2(e,a,b,c,d,21); R2(d,e,a,b,c,22); R2(c,d,e,a,b,23); in SHA1Transform() 87 R2(b,c,d,e,a,24); R2(a,b,c,d,e,25); R2(e,a,b,c,d,26); R2(d,e,a,b,c,27); in SHA1Transform() 88 R2(c,d,e,a,b,28); R2(b,c,d,e,a,29); R2(a,b,c,d,e,30); R2(e,a,b,c,d,31); in SHA1Transform() 89 R2(d,e,a,b,c,32); R2(c,d,e,a,b,33); R2(b,c,d,e,a,34); R2(a,b,c,d,e,35); in SHA1Transform() 90 R2(e,a,b,c,d,36); R2(d,e,a,b,c,37); R2(c,d,e,a,b,38); R2(b,c,d,e,a,39); in SHA1Transform() [all …]
|
| H A D | pqsort.c | 49 #define min(a, b) (a) < (b) ? a : b argument 73 swapcode(long, a, b, n) in swapfunc() 75 swapcode(char, a, b, n) in swapfunc() 78 #define swap(a, b) \ argument 82 *(long *)(void *)(b) = t; \ 84 swapfunc(a, b, es, swaptype) 86 #define vecswap(a, b, n) if ((n) > 0) swapfunc((a), (b), (size_t)(n), swaptype) argument 89 med3(char *a, char *b, char *c, in med3() argument 93 return cmp(a, b) < 0 ? in med3() 94 (cmp(b, c) < 0 ? b : (cmp(a, c) < 0 ? c : a )) in med3() [all …]
|
| /redis-3.2.3/deps/lua/test/ |
| H A D | bisect.lua | 5 function bisect(f,a,b,fa,fb) 6 local c=(a+b)/2 7 io.write(n," c=",c," a=",a," b=",b,"\n") 8 if c==a or c==b or math.abs(a-b)<delta then return c,b-a end 11 if fa*fc<0 then return bisect(f,a,c,fa,fc) else return bisect(f,c,b,fc,fb) end 15 function solve(f,a,b) 17 local z,e=bisect(f,a,b,f(a),f(b))
|
| H A D | trace-globals.lua | 33 b=2 35 b=20 36 b=nil 37 b=200 38 print(a,b,c)
|
| H A D | fibfor.lua | 5 local a,b = 1, 1 8 a, b = b, a+b
|
| /redis-3.2.3/tests/unit/type/ |
| H A D | zset.tcl | 132 } {3 {a 10 b 20 c 30}} 136 } {1 {x 5 a 10 b 20 c 30}} 188 r zrem ztmp a b c d e f g 194 r zadd ztmp 2 b 224 r zadd ztmp 2 b 544 r zadd zseta 2 b 547 } {a 1 b 2} 552 r zadd zseta 2 b 554 r zadd zsetb 1 b 570 r sadd seta b [all …]
|
| /redis-3.2.3/deps/jemalloc/src/ |
| H A D | extent.c | 18 extent_szad_comp(extent_node_t *a, extent_node_t *b) in extent_szad_comp() argument 22 size_t b_qsize = extent_quantize(extent_node_size_get(b)); in extent_szad_comp() 31 uintptr_t b_addr = (uintptr_t)extent_node_addr_get(b); in extent_szad_comp() 44 extent_ad_comp(extent_node_t *a, extent_node_t *b) in extent_ad_comp() argument 47 uintptr_t b_addr = (uintptr_t)extent_node_addr_get(b); in extent_ad_comp()
|
| H A D | util.c | 89 if (b != buf) { in buferror() 103 unsigned b; in malloc_strtoumax() local 114 b = base; in malloc_strtoumax() 146 if (b == 0) in malloc_strtoumax() 147 b = 8; in malloc_strtoumax() 148 if (b == 8) in malloc_strtoumax() 159 if (b == 0) in malloc_strtoumax() 160 b = 16; in malloc_strtoumax() 174 if (b == 0) in malloc_strtoumax() 175 b = 10; in malloc_strtoumax() [all …]
|
| /redis-3.2.3/tests/unit/ |
| H A D | sort.tcl | 121 r zadd zset 5 b 126 } {e d c b a} 131 r zadd zset 5 b 139 } {{a c e b d} {d b e c a}} 144 r zadd zset 5 b 159 r zadd zset 5 b 167 } {{a c e b d} {d b e c a}} 172 r zadd zset 200 b 178 } {min c a b d max} 213 } {a aa aaa azz b c d e f g h i l m n o p q r s t u v z} [all …]
|
| H A D | hyperloglog.tcl | 17 r pfadd hll a b c 21 r pfadd hll a b c 84 r pfadd hll a b c 93 r pfadd hll a b c 102 r pfadd hll a b c 111 r pfadd hll a b c 132 r pfadd hll1 a b c 133 r pfadd hll2 b c d 177 r pfadd hll a b c 180 r pfadd hll a b c
|
| H A D | bitops.tcl | 13 set b($j) $bits 21 append b($j) [string repeat 0 [expr $maxlen-[string length $b($j)]]] 26 set bit [string range $b(0) $x $x] 159 r set b "\x01\x02\xff" 160 r bitop and res1 a b 161 r bitop or res2 a b 162 r bitop xor res3 a b 197 r set b 2 198 r bitop xor dest a b a 205 r set b 2 [all …]
|
| /redis-3.2.3/deps/jemalloc/test/unit/ |
| H A D | math.c | 13 double_eq_rel(double a, double b, double max_rel_err, double max_abs_err) in double_eq_rel() argument 17 if (fabs(a - b) < max_abs_err) in double_eq_rel() 19 rel_err = (fabs(b) > fabs(a)) ? fabs((a-b)/b) : fabs((a-b)/a); in double_eq_rel()
|