diff options
Diffstat (limited to 'misc/examples/new_queue.c')
| -rw-r--r-- | misc/examples/new_queue.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/examples/new_queue.c b/misc/examples/new_queue.c index 5c25a229..7fae90d2 100644 --- a/misc/examples/new_queue.c +++ b/misc/examples/new_queue.c @@ -25,16 +25,16 @@ int main() { stc64_t rng = stc64_new((uint64_t)time(NULL)); stc64_uniform_t dist = stc64_uniform_new(0, n); - c_AUTO (IQ, Q) + c_auto (IQ, Q) { // Push 50'000'000 random numbers onto the queue. - c_FORRANGE (n) + c_forrange (n) IQ_push(&Q, (int)stc64_uniform(&rng, &dist)); // Push or pop on the queue 50 million times printf("befor: size %" c_ZI ", capacity %" c_ZI "\n", IQ_size(&Q), IQ_capacity(&Q)); - c_FORRANGE (n) { + c_forrange (n) { int r = (int)stc64_uniform(&rng, &dist); if (r & 3) IQ_push(&Q, r); |
