regressions: ck_ring_spsc is now explicit about power-of-2 parameter.

ck_pring
Samy Al Bahra 13 years ago
parent d341f67bea
commit d7bba58c0f

@ -148,7 +148,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_t) * nthr); ring = malloc(sizeof(ck_ring_t) * nthr);
assert(ring); assert(ring);

Loading…
Cancel
Save