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

Function sprintfTileElementHalf

src/library/blas/gens/tile.c:320–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318}
319
320void
321sprintfTileElementHalf(
322 Kstring *str,
323 const Tile *tile,
324 unsigned int row,
325 unsigned int col,
326 TileElementHalf half)
327{
328 int len;
329
330 assert(isComplexType(tile->dtype));
331
332 // sprintf the full element and the drop an unneded half
333 sprintfTileElement(str, tile, row, col, 1);
334 len = (int)strlen(str->buf);
335 if (half == TE_HALF_HIGH) {
336 str->buf[len - 2] = str->buf[len - 1];
337 }
338 str->buf[len - 1] = '\0';
339}
340
341int
342forEachTile(Kstring *kstr, unsigned int row, unsigned int col,

Callers 1

genVectorizedVecMulAddFunction · 0.85

Calls 2

isComplexTypeFunction · 0.85
sprintfTileElementFunction · 0.85

Tested by

no test coverage detected