Home
last modified time | relevance | path

Searched refs:ab (Results 1 – 2 of 2) sorted by relevance

/libuv/test/
H A Dbenchmark-ping-pongs.c57 buf_t* ab; in buf_alloc() local
59 ab = buf_freelist; in buf_alloc()
60 if (ab != NULL) in buf_alloc()
61 buf_freelist = ab->next; in buf_alloc()
63 ab = malloc(size + sizeof(*ab)); in buf_alloc()
64 ab->uv_buf_t.len = size; in buf_alloc()
65 ab->uv_buf_t.base = (char*) (ab + 1); in buf_alloc()
68 *buf = ab->uv_buf_t; in buf_alloc()
73 buf_t* ab = (buf_t*) buf->base - 1; in buf_free() local
74 ab->next = buf_freelist; in buf_free()
[all …]
H A Dbenchmark-pump.c354 buf_list_t* ab; in buf_alloc() local
356 ab = buf_freelist; in buf_alloc()
357 if (ab != NULL) in buf_alloc()
358 buf_freelist = ab->next; in buf_alloc()
360 ab = malloc(size + sizeof(*ab)); in buf_alloc()
361 ab->uv_buf_t.len = size; in buf_alloc()
362 ab->uv_buf_t.base = (char*) (ab + 1); in buf_alloc()
365 *buf = ab->uv_buf_t; in buf_alloc()
370 buf_list_t* ab = (buf_list_t*) buf->base - 1; in buf_free() local
371 ab->next = buf_freelist; in buf_free()
[all …]

Completed in 7 milliseconds