Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 130) sorted by relevance

123456

/redis-3.2.3/deps/jemalloc/include/jemalloc/internal/
H A Datomic.h12 #define atomic_read_uint64(p) atomic_add_uint64(p, 0) argument
13 #define atomic_read_uint32(p) atomic_add_uint32(p, 0) argument
14 #define atomic_read_p(p) atomic_add_p(p, NULL) argument
15 #define atomic_read_z(p) atomic_add_z(p, 0) argument
16 #define atomic_read_u(p) atomic_add_u(p, 0) argument
79 : "m" (*p) /* Inputs. */ in atomic_add_uint64()
95 : "m" (*p) /* Inputs. */ in atomic_sub_uint64()
124 : "m" (*p) /* Inputs. */ in atomic_write_uint64()
225 o = atomic_read_uint64(p); in atomic_write_uint64()
406 atomic_store_rel_32(p, x); in atomic_write_uint32()
[all …]
/redis-3.2.3/deps/jemalloc/test/integration/
H A Dxallocx.c5 void *p; in TEST_BEGIN() local
15 dallocx(p, 0); in TEST_BEGIN()
21 void *p; in TEST_BEGIN() local
31 dallocx(p, 0); in TEST_BEGIN()
37 void *p; in TEST_BEGIN() local
128 void *p; in TEST_BEGIN() local
158 void *p; in TEST_BEGIN() local
190 void *p; in TEST_BEGIN() local
222 void *p; in TEST_BEGIN() local
288 void *p; in TEST_BEGIN() local
[all …]
H A Drallocx.c5 void *p, *q; in TEST_BEGIN() local
13 p = mallocx(1, 0); in TEST_BEGIN()
26 p = q; in TEST_BEGIN()
37 p = q; in TEST_BEGIN()
41 dallocx(p, 0); in TEST_BEGIN()
70 void *p, *q; in TEST_BEGIN() local
103 p = q; in TEST_BEGIN()
115 void *p, *q; in TEST_BEGIN() local
131 p = q; in TEST_BEGIN()
140 void *p, *q; in TEST_BEGIN() local
[all …]
H A Dmallocx.c60 void *p; in TEST_BEGIN() local
63 if (p != NULL) { in TEST_BEGIN()
66 dallocx(p, 0); in TEST_BEGIN()
90 void *p; in TEST_BEGIN() local
93 p = mallocx(sz, 0); in TEST_BEGIN()
95 rsz = sallocx(p, 0); in TEST_BEGIN()
98 dallocx(p, 0); in TEST_BEGIN()
100 p = mallocx(sz, 0); in TEST_BEGIN()
102 dallocx(p, 0); in TEST_BEGIN()
108 rsz = sallocx(p, 0); in TEST_BEGIN()
[all …]
H A Daligned_alloc.c11 void *p; in TEST_BEGIN() local
15 p = aligned_alloc(alignment, 1); in TEST_BEGIN()
16 assert_false(p != NULL || get_errno() != EINVAL, in TEST_BEGIN()
22 p = aligned_alloc(alignment + 1, 1); in TEST_BEGIN()
23 assert_false(p != NULL || get_errno() != EINVAL, in TEST_BEGIN()
33 void *p; in TEST_BEGIN() local
43 p = aligned_alloc(alignment, size); in TEST_BEGIN()
44 assert_false(p != NULL || get_errno() != ENOMEM, in TEST_BEGIN()
56 p = aligned_alloc(alignment, size); in TEST_BEGIN()
57 assert_false(p != NULL || get_errno() != ENOMEM, in TEST_BEGIN()
[all …]
H A Dchunk.c122 void *p; in TEST_BEGIN() local
170 p = mallocx(huge0 * 2, 0); in TEST_BEGIN()
185 dallocx(p, 0); in TEST_BEGIN()
191 p = mallocx(huge0 * 2, 0); in TEST_BEGIN()
206 dallocx(p, 0); in TEST_BEGIN()
217 p = mallocx(huge2, 0); in TEST_BEGIN()
223 dallocx(p, 0); in TEST_BEGIN()
228 p = mallocx(large1, 0); in TEST_BEGIN()
241 dallocx(p, 0); in TEST_BEGIN()
245 p = mallocx(42, 0); in TEST_BEGIN()
[all …]
/redis-3.2.3/deps/hiredis/adapters/
H A Dlibuv.h37 uv_poll_start(&p->handle, p->events, redisLibuvPoll); in redisLibuvAddRead()
46 if (p->events) { in redisLibuvDelRead()
47 uv_poll_start(&p->handle, p->events, redisLibuvPoll); in redisLibuvDelRead()
59 uv_poll_start(&p->handle, p->events, redisLibuvPoll); in redisLibuvAddWrite()
68 if (p->events) { in redisLibuvDelWrite()
69 uv_poll_start(&p->handle, p->events, redisLibuvPoll); in redisLibuvDelWrite()
79 free(p); in on_close()
103 redisLibuvEvents* p = (redisLibuvEvents*)malloc(sizeof(*p)); in redisLibuvAttach() local
105 if (!p) { in redisLibuvAttach()
109 memset(p, 0, sizeof(*p)); in redisLibuvAttach()
[all …]
/redis-3.2.3/src/
H A Dziplist.c422 e->p = p; in zipEntry()
534 p += zipRawEntryLength(p); in __ziplistDelete()
538 totlen = p-first.p; in __ziplistDelete()
563 memmove(first.p,p, in __ziplistDelete()
838 p += zipRawEntryLength(p); in ziplistNext()
1337 p = ziplistNext(zl,p); in ziplistTest()
1355 p = ziplistNext(zl,p); in ziplistTest()
1373 p = ziplistNext(zl,p); in ziplistTest()
1404 p = ziplistPrev(zl,p); in ziplistTest()
1423 p = ziplistPrev(zl,p); in ziplistTest()
[all …]
H A Dzipmap.c117 if (p == NULL) { in zipmapEncodeLength()
157 p += llen+l; in zipmapLookupRaw()
243 memmove(p+reqlen, p+freelen, zmlen-(offset+freelen+1)); in zipmapSet()
258 memmove(p+reqlen, p+freelen, zmlen-(offset+freelen+1)); in zipmapSet()
269 p += zipmapEncodeLength(p,klen); in zipmapSet()
271 p += klen; in zipmapSet()
273 p += zipmapEncodeLength(p,vlen); in zipmapSet()
274 *p++ = vempty; in zipmapSet()
284 if (p) { in zipmapDel()
286 memmove(p, p+freelen, zmlen-((p-zm)+freelen+1)); in zipmapDel()
[all …]
H A Dhyperloglog.c367 #define HLL_SPARSE_IS_VAL(p) ((*(p)) & HLL_SPARSE_VAL_BIT) argument
368 #define HLL_SPARSE_ZERO_LEN(p) (((*(p)) & 0x3f)+1) argument
369 #define HLL_SPARSE_XZERO_LEN(p) (((((*(p)) & 0x3f) << 8) | (*((p)+1)))+1) argument
370 #define HLL_SPARSE_VAL_VALUE(p) ((((*(p)) >> 2) & 0x1f)+1) argument
371 #define HLL_SPARSE_VAL_LEN(p) (((*(p)) & 0x3)+1) argument
572 uint8_t *p = (uint8_t*)sparse, *end = p+sdslen(sparse); in hllSparseToDense() local
692 next = HLL_SPARSE_IS_XZERO(p) ? p+2 : p+1; in hllSparseAdd()
843 if (p+1 < end && HLL_SPARSE_IS_VAL(p+1)) { in hllSparseAdd()
850 memmove(p,p+1,end-p); in hllSparseAdd()
860 p++; in hllSparseAdd()
[all …]
H A Dendianconv.h39 void memrev16(void *p);
40 void memrev32(void *p);
41 void memrev64(void *p);
49 #define memrev16ifbe(p) argument
50 #define memrev32ifbe(p) argument
51 #define memrev64ifbe(p) argument
56 #define memrev16ifbe(p) memrev16(p) argument
57 #define memrev32ifbe(p) memrev32(p) argument
58 #define memrev64ifbe(p) memrev64(p) argument
H A Dsds.c437 p = s; in sdsll2str()
445 l = p-s; in sdsll2str()
449 p--; in sdsll2str()
455 p--; in sdsll2str()
467 p = s; in sdsull2str()
474 l = p-s; in sdsull2str()
478 p--; in sdsull2str()
484 p--; in sdsull2str()
878 p++; in sdscatrepr()
941 while(*p && isspace(*p)) p++; in sdssplitargs()
[all …]
H A Dmemtest.c95 unsigned long j, *p; in memtest_addressing() local
98 p = l; in memtest_addressing()
100 *p = (unsigned long)p; in memtest_addressing()
101 p++; in memtest_addressing()
106 p = l; in memtest_addressing()
108 if (*p != (unsigned long)p) { in memtest_addressing()
111 (void*) p, *p); in memtest_addressing()
116 p++; in memtest_addressing()
282 unsigned long *p = m; in memtest_preserving_test() local
309 memtest_fill_random(p,len,0); in memtest_preserving_test()
[all …]
H A Dziplist.h41 unsigned char *ziplistNext(unsigned char *zl, unsigned char *p);
42 unsigned char *ziplistPrev(unsigned char *zl, unsigned char *p);
43 unsigned int ziplistGet(unsigned char *p, unsigned char **sval, unsigned int *slen, long long *lval…
44 unsigned char *ziplistInsert(unsigned char *zl, unsigned char *p, unsigned char *s, unsigned int sl…
45 unsigned char *ziplistDelete(unsigned char *zl, unsigned char **p);
47 unsigned int ziplistCompare(unsigned char *p, unsigned char *s, unsigned int slen);
48 unsigned char *ziplistFind(unsigned char *p, unsigned char *vstr, unsigned int vlen, unsigned int s…
H A Dutil.c190 u = p; in memtoll()
214 digits = u-p; in memtoll()
351 p++; plen++; in string2ll()
359 if (p[0] >= '1' && p[0] <= '9') { in string2ll()
361 p++; plen++; in string2ll()
369 while (plen < slen && p[0] >= '0' && p[0] <= '9') { in string2ll()
378 p++; plen++; in string2ll()
490 for (j = 0; j < copylen; j++) p[j] = charset[p[j] & 0x0F]; in getRandomHexChars()
498 char *x = p; in getRandomHexChars()
524 p[j] = charset[p[j] & 0x0F]; in getRandomHexChars()
[all …]
/redis-3.2.3/deps/jemalloc/test/stress/
H A Dmicrobench.c22 void *p; in compare_funcs() local
25 if (p == NULL) { in compare_funcs()
39 dallocx(p, 0); in compare_funcs()
51 free(p); in malloc_free()
62 free(p); in mallocx_free()
114 void *p; in malloc_mus_free() local
122 free(p); in malloc_mus_free()
128 void *p; in malloc_sallocx_free() local
137 free(p); in malloc_sallocx_free()
151 void *p; in malloc_nallocx_free() local
[all …]
/redis-3.2.3/deps/lua/src/
H A Dlstrlib.c210 if (*p == '^') p++; in classend()
214 if (*(p++) == L_ESC && *p != '\0') in classend()
253 p++; in matchbracketclass()
257 else if ((*(p+1) == '-') && (p+2 < ec)) { in matchbracketclass()
259 if (uchar(*(p-2)) <= c && c <= uchar(*p)) in matchbracketclass()
283 if (*p == 0 || *(p+1) == 0) in matchbalance()
514 int anchor = (*p == '^') ? (p++, 1) : 0; in str_find_aux()
650 int anchor = (*p == '^') ? (p++, 1) : 0; in str_gsub()
727 while (*p != '\0' && strchr(FLAGS, *p) != NULL) p++; /* skip flags */ in scanformat()
730 if (isdigit(uchar(*p))) p++; /* skip width */ in scanformat()
[all …]
H A Dlua_cmsgpack.c79 aux = *p; in memrevifle()
80 *p = *e; in memrevifle()
82 p++; in memrevifle()
149 const unsigned char *p; member
155 cursor->p = s; in mp_cur_init()
584 switch(c->p[0]) { in mp_decode_to_lua_type()
599 c->p[2]); in mp_decode_to_lua_type()
606 c->p[2]); in mp_decode_to_lua_type()
703 size_t l = (c->p[1] << 8) | c->p[2]; in mp_decode_to_lua_type()
725 size_t l = (c->p[1] << 8) | c->p[2]; in mp_decode_to_lua_type()
[all …]
/redis-3.2.3/deps/jemalloc/test/unit/
H A Dckh.c52 void *p; in TEST_BEGIN() member
60 k.p = NULL; in TEST_BEGIN()
61 v.p = NULL; in TEST_BEGIN()
78 void *p; in TEST_BEGIN() member
86 k.p = NULL; in TEST_BEGIN()
87 v.p = NULL; in TEST_BEGIN()
113 void **p[NITEMS]; in TEST_BEGIN() local
123 p[i] = mallocx(i+1, 0); in TEST_BEGIN()
131 assert_false(ckh_insert(tsd, &ckh, p[j], p[j]), in TEST_BEGIN()
168 if (p[k] == q) { in TEST_BEGIN()
[all …]
H A Datomic.c3 #define TEST_STRUCT(p, t) \ argument
4 struct p##_test_s { \
9 typedef struct p##_test_s p##_test_t;
11 #define TEST_BODY(p, t, tc, ta, FMT) do { \ argument
12 const p##_test_t tests[] = { \
35 assert_##ta##_eq(atomic_read_##p(&accum), \
43 assert_##ta##_eq(atomic_read_##p(&accum), accum, \
51 assert_##ta##_eq(atomic_read_##p(&accum), accum, \
62 atomic_write_##p(&accum, tests[i].s); \
88 TEST_STRUCT(p, void *) in TEST_STRUCT() argument
[all …]
H A Dstats.c38 void *p; in TEST_BEGIN() local
71 dallocx(p, 0); in TEST_BEGIN()
145 void *p; in TEST_BEGIN() local
187 dallocx(p, 0); in TEST_BEGIN()
194 void *p; in TEST_BEGIN() local
231 dallocx(p, 0); in TEST_BEGIN()
238 void *p; in TEST_BEGIN() local
271 dallocx(p, 0); in TEST_BEGIN()
278 void *p; in TEST_BEGIN() local
352 void *p; in TEST_BEGIN() local
[all …]
H A Dquarantine.c15 void *p; in quarantine_clear() local
17 p = mallocx(QUARANTINE_SIZE*2, 0); in quarantine_clear()
18 assert_ptr_not_null(p, "Unexpected mallocx() failure"); in quarantine_clear()
19 dallocx(p, 0); in quarantine_clear()
44 void *p = mallocx(SZ, 0); in TEST_BEGIN() local
45 assert_ptr_not_null(p, "Unexpected mallocx() failure"); in TEST_BEGIN()
46 quarantined[i] = p; in TEST_BEGIN()
47 dallocx(p, 0); in TEST_BEGIN()
49 assert_ptr_ne(p, quarantined[j], in TEST_BEGIN()
/redis-3.2.3/deps/jemalloc/test/include/test/
H A Dmath.h4 double pt_norm(double p);
60 assert(p > 0.0); in i_gamma()
75 rn = p; in i_gamma()
88 a = 1.0 - p; in i_gamma()
135 pt_norm(double p) in pt_norm() argument
139 assert(p > 0.0 && p < 1.0); in pt_norm()
141 q = p - 0.5; in pt_norm()
157 r = p; in pt_norm()
159 r = 1.0 - p; in pt_norm()
227 assert(p >= 0.0 && p < 1.0); in pt_chi2()
[all …]
/redis-3.2.3/deps/hiredis/
H A Dsds.c437 p = s; in sdsll2str()
445 l = p-s; in sdsll2str()
449 p--; in sdsll2str()
455 p--; in sdsll2str()
467 p = s; in sdsull2str()
474 l = p-s; in sdsull2str()
478 p--; in sdsull2str()
484 p--; in sdsull2str()
878 p++; in sdscatrepr()
941 while(*p && isspace(*p)) p++; in sdssplitargs()
[all …]
/redis-3.2.3/deps/jemalloc/src/
H A Dutil.c107 p = nptr; in malloc_strtoumax()
109 ns = p; in malloc_strtoumax()
121 p++; in malloc_strtoumax()
127 p++; in malloc_strtoumax()
141 ns = p; in malloc_strtoumax()
149 p++; in malloc_strtoumax()
169 p++; in malloc_strtoumax()
179 while ((*p >= '0' && *p <= '9' && (digit = *p - '0') < b) in malloc_strtoumax()
180 || (*p >= 'A' && *p <= 'Z' && (digit = 10 + *p - 'A') < b) in malloc_strtoumax()
181 || (*p >= 'a' && *p <= 'z' && (digit = 10 + *p - 'a') < b)) { in malloc_strtoumax()
[all …]

123456