MCPcopy Create free account
hub / github.com/clMathLibraries/clBLAS / sprintfOffsetVector

Function sprintfOffsetVector

src/library/blas/gens/fetch.c:366–381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364}
365
366static void
367sprintfOffsetVector(Kstring *kstr, unsigned int base, unsigned int len)
368{
369 if (len == 1) {
370 ksprintf(kstr, "%u", base);
371 }
372 else {
373 unsigned int i;
374
375 ksprintf(kstr, "(uint%u)(%u", len, base);
376 for (i = 1; i < len; i++) {
377 kstrcatf(kstr, ", %u", base + i);
378 }
379 kstrcatf(kstr, "%c", ')');
380 }
381}
382
383static void
384sprintfLinearOffset(

Callers 1

sprintfOffsetStatelessFunction · 0.85

Calls 2

ksprintfFunction · 0.85
kstrcatfFunction · 0.85

Tested by

no test coverage detected