regressions: ck_ring_spsc_template explicit power of 2 parameter.

ck_pring
Samy Al Bahra 13 years ago
parent d7bba58c0f
commit 84535028d9

@ -144,7 +144,8 @@ main(int argc, char *argv[])
assert(nthr >= 1); assert(nthr >= 1);
size = atoi(argv[3]); size = atoi(argv[3]);
assert(size > 0); assert(size > 4 && (size & size - 1) == 0);
size -= 1;
ring = malloc(sizeof(CK_RING_INSTANCE(entry_ring)) * nthr); ring = malloc(sizeof(CK_RING_INSTANCE(entry_ring)) * nthr);
assert(ring); assert(ring);

Loading…
Cancel
Save