Home
last modified time | relevance | path

Searched refs:g_FastPos (Results 1 – 4 of 4) sorted by relevance

/external/lzma/Java/SevenZip/Compression/LZMA/
DEncoder.java19 static byte[] g_FastPos = new byte[1 << 11]; field in Encoder
25 g_FastPos[0] = 0;
26 g_FastPos[1] = 1;
31 g_FastPos[c] = (byte)slotFast;
38 return g_FastPos[pos]; in GetPosSlot()
40 return (g_FastPos[pos >> 10] + 20); in GetPosSlot()
41 return (g_FastPos[pos >> 20] + 40); in GetPosSlot()
47 return (g_FastPos[pos >> 6] + 12); in GetPosSlot2()
49 return (g_FastPos[pos >> 16] + 32); in GetPosSlot2()
50 return (g_FastPos[pos >> 26] + 52); in GetPosSlot2()
/external/lzma/CS/7zip/Compress/LZMA/
DLzmaEncoder.cs19 static Byte[] g_FastPos = new Byte[1 << 11]; field in SevenZip.Compression.LZMA.Encoder
25 g_FastPos[0] = 0; in Encoder()
26 g_FastPos[1] = 1; in Encoder()
31 g_FastPos[c] = slotFast; in Encoder()
38 return g_FastPos[pos]; in GetPosSlot()
40 return (UInt32)(g_FastPos[pos >> 10] + 20); in GetPosSlot()
41 return (UInt32)(g_FastPos[pos >> 20] + 40); in GetPosSlot()
47 return (UInt32)(g_FastPos[pos >> 6] + 12); in GetPosSlot2()
49 return (UInt32)(g_FastPos[pos >> 16] + 32); in GetPosSlot2()
50 return (UInt32)(g_FastPos[pos >> 26] + 52); in GetPosSlot2()
/external/libgdx/gdx/src/com/badlogic/gdx/utils/compression/lzma/
DEncoder.java30 static byte[] g_FastPos = new byte[1 << 11]; field in Encoder
35 g_FastPos[0] = 0;
36 g_FastPos[1] = 1;
40 g_FastPos[c] = (byte)slotFast;
45 if (pos < (1 << 11)) return g_FastPos[pos]; in GetPosSlot()
46 if (pos < (1 << 21)) return (g_FastPos[pos >> 10] + 20); in GetPosSlot()
47 return (g_FastPos[pos >> 20] + 40); in GetPosSlot()
51 if (pos < (1 << 17)) return (g_FastPos[pos >> 6] + 12); in GetPosSlot2()
52 if (pos < (1 << 27)) return (g_FastPos[pos >> 16] + 32); in GetPosSlot2()
53 return (g_FastPos[pos >> 26] + 52); in GetPosSlot2()
/external/lzma/C/
DLzmaEnc.c119 void LzmaEnc_FastPosInit(Byte *g_FastPos) in LzmaEnc_FastPosInit() argument
122 g_FastPos[0] = 0; in LzmaEnc_FastPosInit()
123 g_FastPos[1] = 1; in LzmaEnc_FastPosInit()
130 g_FastPos[c] = (Byte)slotFast; in LzmaEnc_FastPosInit()
136 res = p->g_FastPos[pos >> i] + (i * 2); }
143 #define GetPosSlot1(pos) p->g_FastPos[pos]
145 #define GetPosSlot(pos, res) { if (pos < kNumFullDistances) res = p->g_FastPos[pos]; else BSR2_RET(…
294 Byte g_FastPos[1 << kNumLogBits]; member
1705 LzmaEnc_FastPosInit(p->g_FastPos); in LzmaEnc_Construct()