Lines Matching refs:assert
274 # ifndef assert
275 # define assert(condition) ((void)0) macro
488 assert(srcPtr + offset == dstPtr); in LZ4_memcpy_using_offset_base()
529 assert(dstEnd >= dstPtr + MINMATCH); in LZ4_memcpy_using_offset()
571 assert(val != 0); in LZ4_NbCommonBytes()
798 case clearedTable: { /* illegal! */ assert(0); return; } in LZ4_clearHash()
811 case byPtr: { /* illegal! */ assert(0); return; } in LZ4_putIndexOnHash()
813 …case byU16: { U16* hashTable = (U16*) tableBase; assert(idx < 65536); hashTable[h] = (U16)idx; ret… in LZ4_putIndexOnHash()
822 assert(tableType == byPtr); (void)tableType; in LZ4_putPositionOnHash()
843 assert(h < (1U << (LZ4_MEMORY_USAGE-2))); in LZ4_getIndexOnHash()
848 assert(h < (1U << (LZ4_MEMORY_USAGE-1))); in LZ4_getIndexOnHash()
851 assert(0); return 0; /* forbidden case */ in LZ4_getIndexOnHash()
856 assert(tableType == byPtr); (void)tableType; in LZ4_getPositionOnHash()
877 assert(inputSize >= 0); in LZ4_prepareTable()
965 assert(ip != NULL); in LZ4_compress_generic_validated()
966 …if (tableType == byU16) assert(inputSize<LZ4_64Klimit); /* Size too large (not within 64K limit) … in LZ4_compress_generic_validated()
967 … if (tableType == byPtr) assert(dictDirective==noDict); /* only supported use case with byPtr */ in LZ4_compress_generic_validated()
971 assert(acceleration >= 1); in LZ4_compress_generic_validated()
1016 assert(ip < mflimitPlusOne); in LZ4_compress_generic_validated()
1034 assert(matchIndex <= current); in LZ4_compress_generic_validated()
1035 assert(forwardIp - base < (ptrdiff_t)(2 GB - 1)); in LZ4_compress_generic_validated()
1041 assert(ip < mflimitPlusOne); in LZ4_compress_generic_validated()
1046 assert(tableType == byU32); in LZ4_compress_generic_validated()
1058 assert(startIndex - matchIndex >= MINMATCH); in LZ4_compress_generic_validated()
1059 assert(dictBase); in LZ4_compress_generic_validated()
1074 assert(matchIndex < current); in LZ4_compress_generic_validated()
1079 … assert((current - matchIndex) <= LZ4_DISTANCE_MAX); /* match now expected within distance */ in LZ4_compress_generic_validated()
1091 …assert(ip > anchor); /* this is always true as ip has been advanced before entering the main loop … in LZ4_compress_generic_validated()
1142 assert(offset <= LZ4_DISTANCE_MAX && offset > 0); in LZ4_compress_generic_validated()
1146 assert(ip-match <= LZ4_DISTANCE_MAX); in LZ4_compress_generic_validated()
1156 assert(dictEnd > match); in LZ4_compress_generic_validated()
1178 assert(newMatchCode < matchCode); in LZ4_compress_generic_validated()
1194 assert(outputDirective == limitedOutput); in LZ4_compress_generic_validated()
1213 assert(!(outputDirective == fillOutput && op + 1 + LASTLITERALS > olimit)); in LZ4_compress_generic_validated()
1243 assert(matchIndex < current); in LZ4_compress_generic_validated()
1247 assert(tableType == byU32); in LZ4_compress_generic_validated()
1258 assert(dictBase); in LZ4_compress_generic_validated()
1269 assert(matchIndex < current); in LZ4_compress_generic_validated()
1294 assert(olimit >= op); in LZ4_compress_generic_validated()
1298 assert(outputDirective == limitedOutput); in LZ4_compress_generic_validated()
1320 assert(result > 0); in LZ4_compress_generic_validated()
1349 assert(outputDirective == notLimited || dstCapacity >= 1); in LZ4_compress_generic()
1350 assert(dst != NULL); in LZ4_compress_generic()
1353 assert (inputConsumed != NULL); in LZ4_compress_generic()
1358 assert(src != NULL); in LZ4_compress_generic()
1370 assert(ctx != NULL); in LZ4_compress_fast_extState()
1404 assert(ctx != NULL); in LZ4_compress_fast_extState_fastReset()
1469 assert(s != NULL); (void)s; in LZ4_compress_destSize_extState()
1637 assert(nextSize >= 0); in LZ4_renormDictT()
1771 if (safeBuffer == NULL) assert(dictSize == 0); in LZ4_saveDict()
1774 assert(dict->dictionary); in LZ4_saveDict()
1834 if (dictStart == NULL) assert(dictSize == 0); in LZ4_decompress_unsafe_generic()
1931 assert(ip != NULL); in read_variable_length()
1932 assert(*ip != NULL); in read_variable_length()
1933 assert(ilimit != NULL); in read_variable_length()
2000 assert(lowPrefix <= op); in LZ4_decompress_generic()
2022 assert(oend - op >= FASTLOOP_SAFE_DISTANCE); in LZ4_decompress_generic()
2023 assert(ip < iend); in LZ4_decompress_generic()
2057 assert(match <= op); /* overflow check */ in LZ4_decompress_generic()
2083 assert(match >= lowPrefix); in LZ4_decompress_generic()
2084 assert(match <= op); in LZ4_decompress_generic()
2085 assert(op + 18 <= oend); in LZ4_decompress_generic()
2100 assert(dictEnd != NULL); in LZ4_decompress_generic()
2134 assert((op <= oend) && (oend-op >= 32)); in LZ4_decompress_generic()
2149 assert(ip < iend); in LZ4_decompress_generic()
2174 assert(match <= op); /* check overflow */ in LZ4_decompress_generic()
2236 assert(op<=oend); in LZ4_decompress_generic()
2288 assert(dictEnd != NULL); in LZ4_decompress_generic()
2314 assert(match >= lowPrefix); in LZ4_decompress_generic()
2320 assert(op<=oend); in LZ4_decompress_generic()
2523 assert(dictionary != NULL); in LZ4_setStreamDecode()
2567 assert(lz4sd->extDictSize == 0); in LZ4_decompress_safe_continue()
2604 (assert(LZ4_streamDecode!=NULL), &LZ4_streamDecode->internal_donotuse); in LZ4_decompress_fast_continue()
2608 assert(originalSize >= 0); in LZ4_decompress_fast_continue()
2612 assert(lz4sd->extDictSize == 0); in LZ4_decompress_fast_continue()
2656 assert(dictSize >= 0); in LZ4_decompress_safe_usingDict()
2659 assert(dictSize >= 0); in LZ4_decompress_safe_usingDict()
2671 assert(dictSize >= 0); in LZ4_decompress_safe_partial_usingDict()
2674 assert(dictSize >= 0); in LZ4_decompress_safe_partial_usingDict()
2684 assert(dictSize >= 0); in LZ4_decompress_fast_usingDict()