Searched refs:tableBase (Results 1 – 1 of 1) sorted by relevance
/external/lz4/lib/ |
D | lz4.c | 469 static void LZ4_putPositionOnHash(const BYTE* p, U32 h, void* tableBase, tableType_t tableType, con… in LZ4_putPositionOnHash() argument 473 case byPtr: { const BYTE** hashTable = (const BYTE**)tableBase; hashTable[h] = p; return; } in LZ4_putPositionOnHash() 474 case byU32: { U32* hashTable = (U32*) tableBase; hashTable[h] = (U32)(p-srcBase); return; } in LZ4_putPositionOnHash() 475 case byU16: { U16* hashTable = (U16*) tableBase; hashTable[h] = (U16)(p-srcBase); return; } in LZ4_putPositionOnHash() 479 static void LZ4_putPosition(const BYTE* p, void* tableBase, tableType_t tableType, const BYTE* srcB… in LZ4_putPosition() argument 482 LZ4_putPositionOnHash(p, h, tableBase, tableType, srcBase); in LZ4_putPosition() 485 static const BYTE* LZ4_getPositionOnHash(U32 h, void* tableBase, tableType_t tableType, const BYTE*… in LZ4_getPositionOnHash() argument 487 …if (tableType == byPtr) { const BYTE** hashTable = (const BYTE**) tableBase; return hashTable[h]; } in LZ4_getPositionOnHash() 488 if (tableType == byU32) { U32* hashTable = (U32*) tableBase; return hashTable[h] + srcBase; } in LZ4_getPositionOnHash() 489 …{ U16* hashTable = (U16*) tableBase; return hashTable[h] + srcBase; } /* default, to ensure a re… in LZ4_getPositionOnHash() [all …]
|