Lines Matching defs:U32

304   typedef uint32_t U32;
314 typedef unsigned int U32;
363 const union { U32 u; BYTE c[4]; } one = { 1 }; /* don't use static : performance detrimental */
372 static U32 LZ4_read32(const void* memPtr) { return *(const U32*) memPtr; }
376 static void LZ4_write32(void* memPtr, U32 value) { *(U32*)memPtr = value; }
382 typedef union { U16 u16; U32 u32; reg_t uArch; } __attribute__((packed)) LZ4_unalign;
385 static U32 LZ4_read32(const void* ptr) { return ((const LZ4_unalign*)ptr)->u32; }
389 static void LZ4_write32(void* memPtr, U32 value) { ((LZ4_unalign*)memPtr)->u32 = value; }
398 static U32 LZ4_read32(const void* memPtr)
400 U32 val; LZ4_memcpy(&val, memPtr, sizeof(val)); return val;
413 static void LZ4_write32(void* memPtr, U32 value)
593 _BitScanForward(&r, (U32)val);
598 return (unsigned)__builtin_ctz((U32)val) >> 3;
600 const U32 m = 0x01010101;
631 static const U32 by32 = sizeof(val)*4; /* 32 on 64 bits (goal), 16 on 32 bits.
645 return (unsigned)__builtin_clz((U32)val) >> 3;
690 static const U32 LZ4_skipTrigger = 6; /* Increase this value ==> compression run slower on incompressible data */
756 LZ4_FORCE_INLINE U32 LZ4_hash4(U32 sequence, tableType_t const tableType)
764 LZ4_FORCE_INLINE U32 LZ4_hash5(U64 sequence, tableType_t const tableType)
766 const U32 hashLog = (tableType == byU16) ? LZ4_HASHLOG+1 : LZ4_HASHLOG;
769 return (U32)(((sequence << 24) * prime5bytes) >> (64 - hashLog));
772 return (U32)(((sequence >> 24) * prime8bytes) >> (64 - hashLog));
776 LZ4_FORCE_INLINE U32 LZ4_hashPosition(const void* const p, tableType_t const tableType)
782 LZ4_FORCE_INLINE void LZ4_clearHash(U32 h, void* tableBase, tableType_t const tableType)
789 case byU32: { U32* hashTable = (U32*) tableBase; hashTable[h] = 0; return; }
794 LZ4_FORCE_INLINE void LZ4_putIndexOnHash(U32 idx, U32 h, void* tableBase, tableType_t const tableType)
801 case byU32: { U32* hashTable = (U32*) tableBase; hashTable[h] = idx; return; }
806 LZ4_FORCE_INLINE void LZ4_putPositionOnHash(const BYTE* p, U32 h,
814 case byU32: { U32* hashTable = (U32*) tableBase; hashTable[h] = (U32)(p-srcBase); return; }
821 U32 const h = LZ4_hashPosition(p, tableType);
831 LZ4_FORCE_INLINE U32 LZ4_getIndexOnHash(U32 h, const void* tableBase, tableType_t tableType)
835 const U32* const hashTable = (const U32*) tableBase;
847 static const BYTE* LZ4_getPositionOnHash(U32 h, const void* tableBase, tableType_t tableType, const BYTE* srcBase)
850 if (tableType == byU32) { const U32* const hashTable = (const U32*) tableBase; return hashTable[h] + srcBase; }
859 U32 const h = LZ4_hashPosition(p, tableType);
882 cctx->tableType = (U32)clearedTable;
926 U32 const startIndex = cctx->currentOffset;
933 const U32 dictSize =
935 const U32 dictDelta = (dictDirective == usingDictCtx) ? startIndex - dictCtx->currentOffset : 0; /* make indexes in dictCtx comparable with index in current context */
938 U32 const prefixIdxLimit = startIndex - dictSize; /* used when dictDirective == dictSmall */
955 U32 offset = 0;
956 U32 forwardH;
974 cctx->dictSize = (U32)inputSize;
976 cctx->dictSize += (U32)inputSize;
978 cctx->currentOffset += (U32)inputSize;
979 cctx->tableType = (U32)tableType;
999 U32 const h = forwardH;
1020 U32 const h = forwardH;
1021 U32 const current = (U32)(forwardIp - base);
1022 U32 matchIndex = LZ4_getIndexOnHash(h, cctx->hashTable, tableType);
1131 DEBUGLOG(6, " with offset=%u (same segment)", (U32)(ip - match));
1162 U32 newMatchCode = 15 /* in token */ - 1 /* to avoid needing a zero byte */ + ((U32)(olimit - op) - 1 - LASTLITERALS) * 255;
1173 DEBUGLOG(5, "Clearing %u positions", (U32)(filledIp - ip));
1175 U32 const h = LZ4_hashPosition(ptr, tableType);
1220 U32 const h = LZ4_hashPosition(ip, tableType);
1221 U32 const current = (U32)(ip-base);
1222 U32 matchIndex = LZ4_getIndexOnHash(h, cctx->hashTable, tableType);
1324 if ((U32)srcSize > (U32)LZ4_MAX_INPUT_SIZE) { return 0; } /* Unsupported srcSize, too large (or negative) */
1572 dict->dictSize = (U32)(dictEnd - p);
1573 dict->tableType = (U32)tableType;
1617 U32 const delta = LZ4_dict->currentOffset - 64 KB;
1663 streamPtr->dictSize = (U32)(dictEnd - sourceEnd);
1705 streamPtr->dictSize = (U32)inputSize;
1726 streamPtr->dictSize = (U32)srcSize;
1745 if ((U32)dictSize > 64 KB) { dictSize = 64 KB; } /* useless to define a dictionary > 64 KB */
1746 if ((U32)dictSize > dict->dictSize) { dictSize = (int)dict->dictSize; }
1756 dict->dictSize = (U32)dictSize;