summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/new_queue.c
diff options
context:
space:
mode:
authorTyge Lovset <[email protected]>2023-01-02 09:00:47 +0100
committerTyge Lovset <[email protected]>2023-01-02 09:00:47 +0100
commit8c6ba8a3444e4b8640e7fe04f565cef57c850432 (patch)
tree10119ea3bbef5ac2818874849231bad19ad7aa5a /misc/examples/new_queue.c
parent91e79fc60713c1f09e940a7ee83ff2f8aa4f9d69 (diff)
downloadSTC-modified-8c6ba8a3444e4b8640e7fe04f565cef57c850432.tar.gz
STC-modified-8c6ba8a3444e4b8640e7fe04f565cef57c850432.zip
Added selected unicode character classes.
Diffstat (limited to 'misc/examples/new_queue.c')
-rw-r--r--misc/examples/new_queue.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/examples/new_queue.c b/misc/examples/new_queue.c
index c72c94a0..828387b5 100644
--- a/misc/examples/new_queue.c
+++ b/misc/examples/new_queue.c
@@ -27,12 +27,13 @@ int main() {
c_AUTO (IQ, Q)
{
- // Push eight million random numbers onto the queue.
+ // Push 50'000'000 random numbers onto the queue.
c_FORRANGE (n)
IQ_push(&Q, stc64_uniform(&rng, &dist));
// Push or pop on the queue 50 million times
printf("befor: size %" c_ZU ", capacity %" c_ZU "\n", IQ_size(&Q), IQ_capacity(&Q));
+
c_FORRANGE (n) {
int r = stc64_uniform(&rng, &dist);
if (r & 3)