Searched refs:EXM_THROW (Results 1 – 3 of 3) sorted by relevance
/external/lz4/programs/ |
D | lz4io.c | 133 #define EXM_THROW(error, ...) \ macro 338 if (finput == NULL) EXM_THROW(20, "%s : open file error ", input_filename); in LZ4IO_compressFilename_Legacy() 340 if (foutput == NULL) { fclose(finput); EXM_THROW(20, "%s : open file error ", input_filename); } in LZ4IO_compressFilename_Legacy() 345 if (!in_buff || !out_buff) EXM_THROW(21, "Allocation error : not enough memory"); in LZ4IO_compressFilename_Legacy() 350 if (sizeCheck!=MAGICNUMBER_SIZE) EXM_THROW(22, "Write error : cannot write header"); } in LZ4IO_compressFilename_Legacy() 358 …if (inSize > LEGACY_BLOCKSIZE) EXM_THROW(23, "Read error : wrong fread() size report "); /* shou… in LZ4IO_compressFilename_Legacy() 369 … if (sizeCheck!=(size_t)(outSize+4)) EXM_THROW(24, "Write error : cannot write compressed block"); in LZ4IO_compressFilename_Legacy() 371 if (ferror(finput)) EXM_THROW(25, "Error while reading %s ", input_filename); in LZ4IO_compressFilename_Legacy() 412 …if (LZ4F_isError(errorCode)) EXM_THROW(30, "Allocation error : can't create LZ4F context : %s", LZ… in LZ4IO_createCResources() 419 if (!ress.srcBuffer || !ress.dstBuffer) EXM_THROW(31, "Allocation error : not enough memory"); in LZ4IO_createCResources() [all …]
|
D | bench.c | 104 #define EXM_THROW(error, ...) \ macro 175 EXM_THROW(31, "allocation error : not enough memory"); in BMK_benchMem() 259 if (LZ4_isError(rSize)) EXM_THROW(1, "LZ4_compress() failed"); in BMK_benchMem() 429 if (f==NULL) EXM_THROW(10, "impossible to open file %s", fileNamesTable[n]); in BMK_loadFiles() 433 if (readSize != (size_t)fileSize) EXM_THROW(11, "could not read %s", fileNamesTable[n]); in BMK_loadFiles() 440 if (totalSize == 0) EXM_THROW(12, "no data to bench"); in BMK_loadFiles() 452 if (!fileSizes) EXM_THROW(12, "not enough memory for fileSizes"); in BMK_benchFileTable() 456 if (benchedSize==0) EXM_THROW(12, "not enough memory"); in BMK_benchFileTable() 461 if (!srcBuffer) EXM_THROW(12, "not enough memory"); in BMK_benchFileTable() 487 if (!srcBuffer) EXM_THROW(21, "not enough memory"); in BMK_syntheticTest()
|
D | lz4cli.c | 86 #define EXM_THROW(error, ...) \ macro
|