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

Function saveExtraHeader

src/library/tools/tune/storage_io.c:609–623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

607}
608
609bool
610saveExtraHeader(HfInfo* file, BlasExtraInfo* bExtra)
611{
612 unsigned int dtype = (unsigned int)bExtra->dtype;
613 unsigned int flags = (unsigned int)bExtra->flags;
614
615 int status = hfJump(file, bExtra->offset);
616
617 status += hfWrite(file, &dtype, sizeof(unsigned int));
618 status += hfWrite(file, &flags, sizeof(unsigned int));
619 status += hfWrite(file, &bExtra->numParam, sizeof(unsigned int));
620 status += hfWriteCRC(file);
621
622 return checkFile(file, (size_t)bExtra->offset + bExtra->size, status);
623}
624
625
626bool

Callers 1

writeStorageCacheFunction · 0.85

Calls 4

hfJumpFunction · 0.85
hfWriteFunction · 0.85
hfWriteCRCFunction · 0.85
checkFileFunction · 0.85

Tested by

no test coverage detected