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

Function loadPatternDataFromFile

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

Source from the content-addressed store, hash-verified

206}
207
208bool
209loadPatternDataFromFile(
210 HfInfo * file,
211 char** name,
212 unsigned int* len,
213 unsigned int* numExtra)
214{
215 int status = 0;
216
217 status += hfRead(file, len, 1, sizeof(*len));
218 *name = malloc((*len)* sizeof(char));
219 status += hfRead(file, *name, 1, *len);
220 status += hfRead(file, numExtra, 1, sizeof(unsigned int));
221 status += hfCheckCRC (file);
222
223 return status == FILE_OK;
224}
225
226
227int

Callers 1

loadDataFromFileFunction · 0.85

Calls 2

hfReadFunction · 0.85
hfCheckCRCFunction · 0.85

Tested by

no test coverage detected