Lines Matching +full:256 +full:- +full:byte
7 * - FSE source repository : https://github.com/Cyan4973/FiniteStateEntropy
8 * - Public forum : https://groups.google.com/forum/#!forum/lz4c
10 * This source code is licensed under both the BSD-style license (found in the
13 * You may select, at your option, one of the above-listed licenses.
16 /* --- dependencies --- */
17 #include "../common/mem.h" /* U32, BYTE, etc. */
23 /* --- Error management --- */
26 /*-**************************************************************
32 const BYTE* ip = (const BYTE*)src; in HIST_count_simple()
33 const BYTE* const end = ip + srcSize; in HIST_count_simple()
45 while (!count[maxSymbolValue]) maxSymbolValue--; in HIST_count_simple()
72 const BYTE* ip = (const BYTE*)source; in HIST_count_parallel_wksp()
73 const BYTE* const iend = ip+sourceSize; in HIST_count_parallel_wksp()
77 U32* const Counting2 = Counting1 + 256; in HIST_count_parallel_wksp()
78 U32* const Counting3 = Counting2 + 256; in HIST_count_parallel_wksp()
79 U32* const Counting4 = Counting3 + 256; in HIST_count_parallel_wksp()
88 ZSTD_memset(workSpace, 0, 4*256*sizeof(unsigned)); in HIST_count_parallel_wksp()
92 while (ip < iend-15) { in HIST_count_parallel_wksp()
94 Counting1[(BYTE) c ]++; in HIST_count_parallel_wksp()
95 Counting2[(BYTE)(c>>8) ]++; in HIST_count_parallel_wksp()
96 Counting3[(BYTE)(c>>16)]++; in HIST_count_parallel_wksp()
99 Counting1[(BYTE) c ]++; in HIST_count_parallel_wksp()
100 Counting2[(BYTE)(c>>8) ]++; in HIST_count_parallel_wksp()
101 Counting3[(BYTE)(c>>16)]++; in HIST_count_parallel_wksp()
104 Counting1[(BYTE) c ]++; in HIST_count_parallel_wksp()
105 Counting2[(BYTE)(c>>8) ]++; in HIST_count_parallel_wksp()
106 Counting3[(BYTE)(c>>16)]++; in HIST_count_parallel_wksp()
109 Counting1[(BYTE) c ]++; in HIST_count_parallel_wksp()
110 Counting2[(BYTE)(c>>8) ]++; in HIST_count_parallel_wksp()
111 Counting3[(BYTE)(c>>16)]++; in HIST_count_parallel_wksp()
114 ip-=4; in HIST_count_parallel_wksp()
121 for (s=0; s<256; s++) { in HIST_count_parallel_wksp()
127 while (!Counting1[maxSymbolValue]) maxSymbolValue--; in HIST_count_parallel_wksp()
137 * `workSpace` is a writable buffer which must be 4-bytes aligned,
146 if ((size_t)workSpace & 3) return ERROR(GENERIC); /* must be aligned on 4-bytes boundaries */ in HIST_countFast_wksp()
158 if ((size_t)workSpace & 3) return ERROR(GENERIC); /* must be aligned on 4-bytes boundaries */ in HIST_count_wksp()