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

Function sprintfVectorComponent

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

Source from the content-addressed store, hash-verified

327}
328
329static void
330sprintfVectorComponent(
331 Kstring *kstr,
332 const char *baseName,
333 unsigned int n,
334 unsigned int maxn)
335{
336 assert(n < maxn);
337 if (maxn == 1) {
338 kstrcpy(kstr, baseName);
339 }
340 else {
341 ksprintf(kstr, "%s.s%c", baseName, vectComponents[n]);
342 }
343}
344
345/*
346 * sprintf base coordinate and scale it in accordance with

Callers 2

Calls 2

kstrcpyFunction · 0.85
ksprintfFunction · 0.85

Tested by

no test coverage detected