| /isa-l/igzip/ |
| H A D | huffman.asm | 7 ; * Redistributions of source code must retain the above copyright 87 ; get_dist_code dist, code, len 90 %define %%code %2d ; 32-bit OUT 95 mov %%code, %%len 97 shr %%code, 5 108 %define %%code %1d ; 32-bit OUT 111 mov %%len, %%code 113 shr %%code, 5 119 ; void compute_dist_code dist, code, len 123 %define %%code %2 ; OUT [all …]
|
| H A D | huffman.h | 107 uint32_t code; in compute_dist_code() local 116 code = hufftables->dcodes[sym - IGZIP_DECODE_OFFSET]; in compute_dist_code() 118 *p_code = code | (extra_bits << len); in compute_dist_code() 123 get_dist_code(struct isal_hufftables *hufftables, uint32_t dist, uint64_t *code, uint64_t *len) in get_dist_code() argument 130 *code = code_len >> 5; in get_dist_code() 133 compute_dist_code(hufftables, dist, code, len); in get_dist_code() 138 get_len_code(struct isal_hufftables *hufftables, uint32_t length, uint64_t *code, uint64_t *len) in get_len_code() argument 145 *code = code_len >> 5; in get_len_code() 150 get_lit_code(struct isal_hufftables *hufftables, uint32_t lit, uint64_t *code, uint64_t *len) in get_lit_code() argument 154 *code = hufftables->lit_table[lit]; in get_lit_code() [all …]
|
| H A D | igzip_icf_base.c | 44 uint32_t code, code2, extra_bits; in isal_deflate_icf_body_hash_hist_base() local 102 get_len_icf_code(match_length, &code); in isal_deflate_icf_body_hash_hist_base() 105 level_buf->hist.ll_hist[code]++; in isal_deflate_icf_body_hash_hist_base() 108 write_deflate_icf(next_out, code, code2, extra_bits); in isal_deflate_icf_body_hash_hist_base() 116 get_lit_icf_code(literal & 0xFF, &code); in isal_deflate_icf_body_hash_hist_base() 117 level_buf->hist.ll_hist[code]++; in isal_deflate_icf_body_hash_hist_base() 118 write_deflate_icf(next_out, code, NULL_DIST_SYM, 0); in isal_deflate_icf_body_hash_hist_base() 140 uint32_t code, code2, extra_bits; in isal_deflate_icf_finish_hash_hist_base() local 194 get_len_icf_code(match_length, &code); in isal_deflate_icf_finish_hash_hist_base() 197 level_buf->hist.ll_hist[code]++; in isal_deflate_icf_finish_hash_hist_base() [all …]
|
| H A D | igzip_base.c | 35 uint64_t code, code_len, code2, code_len2; in isal_deflate_body_base() local 87 get_len_code(stream->hufftables, match_length, &code, &code_len); in isal_deflate_body_base() 90 code |= code2 << code_len; in isal_deflate_body_base() 93 write_bits(&state->bitbuf, code, code_len); in isal_deflate_body_base() 101 get_lit_code(stream->hufftables, literal & 0xFF, &code, &code_len); in isal_deflate_body_base() 102 write_bits(&state->bitbuf, code, code_len); in isal_deflate_body_base() 122 uint64_t code, code_len, code2, code_len2; in isal_deflate_finish_base() local 168 get_len_code(stream->hufftables, match_length, &code, in isal_deflate_finish_base() 172 code |= code2 << code_len; in isal_deflate_finish_base() 175 write_bits(&state->bitbuf, code, code_len); in isal_deflate_finish_base() [all …]
|
| H A D | igzip_icf_body.c | 148 uint64_t code; in compress_icf_map_g() local 157 code = load_native_u64((uint8_t *) matches_next); in compress_icf_map_g() 159 code = load_native_u32((uint8_t *) matches_next) | in compress_icf_map_g() 162 lit_len = code & LIT_LEN_MASK; in compress_icf_map_g() 163 lit_len2 = (code >> ICF_CODE_LEN) & LIT_LEN_MASK; in compress_icf_map_g() 167 store_native_u32((uint8_t *) level_buf->icf_buf_next, code); in compress_icf_map_g() 170 dist = (code >> ICF_DIST_OFFSET) & DIST_LIT_MASK; in compress_icf_map_g() 177 store_native_u64((uint8_t *) level_buf->icf_buf_next, code); in compress_icf_map_g() 179 store_native_u32((uint8_t *) level_buf->icf_buf_next, (uint32_t) code); in compress_icf_map_g() 181 (uint32_t) (code >> 3 in compress_icf_map_g() [all...] |
| H A D | bitbuf2.h | 118 write_bits_unsafe(struct BitBuf2 *me, uint64_t code, uint32_t count) in write_bits_unsafe() argument 120 me->m_bits |= code << me->m_bit_count; in write_bits_unsafe() 125 write_bits(struct BitBuf2 *me, uint64_t code, uint32_t count) in write_bits() argument 127 me->m_bits |= code << me->m_bit_count; in write_bits() 133 write_bits_flush(struct BitBuf2 *me, uint64_t code, uint32_t count) in write_bits_flush() argument 135 me->m_bits |= code << me->m_bit_count; in write_bits_flush()
|
| H A D | bitbuf2.asm | 7 ; * Redistributions of source code must retain the above copyright 35 ; code is clobbered 36 ; write_bits_always m_bits, m_bit_count, code, count, m_out_buf 40 %define %%code %3 44 SHLX %%code, %%code, %%m_bit_count 46 or %%m_bits, %%code
|
| H A D | huff_codes.c | 627 bit_reverse(uint16_t code, uint32_t length) in bit_reverse() argument 629 code = (bitrev8[code & 0x00FF] << 8) | (bitrev8[code >> 8]); in bit_reverse() 630 return (code >> (16 - length)); in bit_reverse() 956 uint16_t code = 0; in set_huff_codes() local 960 next_code[0] = code; in set_huff_codes() 967 huff_code_table[i].code = bit_reverse(next_code[huff_code_table[i].length], in set_huff_codes() 985 uint32_t code, code_len, bits, i; in set_dist_huff_codes() local 990 code = bl_count[0] = 0; in set_dist_huff_codes() 992 code = (code + bl_count[bits - 1]) << 1; in set_dist_huff_codes() 993 next_code[bits] = code; in set_dist_huff_codes() [all …]
|
| H A D | igzip_inflate.c | 244 static void inline write_huff_code(struct huff_code *huff_code, uint32_t code, uint32_t length) in write_huff_code() argument 246 huff_code->code_and_length = code | length << 24; in write_huff_code() 251 uint32_t max, code, length; in set_codes() local 273 code = bit_reverse2(next_code[length], length); in set_codes() 275 write_huff_code(huff_code_table, code, length); in set_codes() 287 uint32_t code, code_len, expand_len; in set_and_expand_lit_len_huffcode() local 343 code = bit_reverse2(next_code[code_len], code_len); in set_and_expand_lit_len_huffcode() 349 write_huff_code(huff_code_table, code, code_len); in set_and_expand_lit_len_huffcode() 364 code = bit_reverse2(next_code[code_len], code_len); in set_and_expand_lit_len_huffcode() 372 write_huff_code(expand_next, code | (extra << code_len), expand_len); in set_and_expand_lit_len_huffcode() [all …]
|
| H A D | huff_codes.h | 119 uint16_t code; member 125 uint16_t code; 152 uint8_t code; member
|
| H A D | encode_df_04.asm | 7 ; * Redistributions of source code must retain the above copyright 41 ; | len | code | 45 ; |eblen:codlen| code | 50 ; (DIST_OFFSET + 5):DIST_OFFSET : dist code 233 ;; Start code lookups for next iteration 245 ;; Merge dist code with extra bits 382 ;; insert LL code 404 ;; insert LL code 426 ;; insert LL code 448 ;; insert LL code [all …]
|
| H A D | encode_df_06.asm | 7 ; * Redistributions of source code must retain the above copyright 43 ; | len | code | 47 ; |eblen:codlen| code | 52 ; (DIST_OFFSET + 5):DIST_OFFSET : dist code 266 ;; Start code lookups for next iteration 278 ;; Merge dist code with extra bits 416 ;; insert LL code 438 ;; insert LL code 460 ;; insert LL code 482 ;; insert LL code [all …]
|
| H A D | igzip_finish.asm | 7 ; * Redistributions of source code must retain the above copyright 48 %define code rbx 206 ; get_len_code(len, &code, &code_len); 207 get_len_code len, code, rcx, hufftables ;; rcx is code_len 211 ; code2 |= code 214 or code2, code
|
| /isa-l/igzip/aarch64/ |
| H A D | bitbuf2_aarch64.h | 35 .macro update_bits stream:req,code:req,code_len:req,m_bits:req,m_bit_count:req \ 38 lsl x_\code,x_\code,x_\m_bit_count 39 orr x_\m_bits,x_\code,x_\m_bits 44 and w_\code,w_\m_bit_count,-8 47 sub w_\m_bit_count,w_\m_bit_count,w_\code 48 lsr x_\m_bits,x_\m_bits,x_\code
|
| H A D | huffman_aarch64.h | 60 .macro get_len_code hufftables:req,length:req,code:req,code_len:req,tmp0:req 63 lsr w_\code, w_\code_len , 5 67 .macro get_lit_code hufftables:req,lit:req,code:req,code_len:req 68 add x_\code,\hufftables,LIT_TABLE_OFFSET 69 ldrh w_\code,[x_\code,x_\lit,lsl 1] 74 .macro get_dist_code hufftables:req,dist:req,code:req,code_len:req,tmp0:req,tmp1:req,tmp2:req 79 lsr w_\code, w_\code_len , 5 96 add x_\code,\hufftables,DCODE_TABLE_OFFSET - IGZIP_DECODE_OFFSET*2 98 ldrh w_\code,[x_\code,x_\tmp2,lsl 1] 101 orr w_\code,w_\code,w_\tmp1
|
| H A D | igzip_deflate_finish_aarch64.S | 119 declare_generic_reg code, 3,x 198 get_len_code hufftables,match_length,code,code_len,tmp0 204 orr code,code,code2 211 update_bits stream,code,code_len,m_bits,m_bit_count,m_out_buf 219 get_lit_code hufftables,literal,code,code_len 225 update_bits stream,code,code_len,m_bits,m_bit_count,m_out_buf 237 get_lit_code hufftables,literal,code,code_len 242 update_bits stream,code,code_len,m_bits,m_bit_count,m_out_buf 251 get_lit_code hufftables,literal,code,code_len 254 update_bits stream,code,code_len,m_bits,m_bit_count,m_out_buf
|
| H A D | igzip_deflate_body_aarch64.S | 117 declare_generic_reg code, 3,x 211 get_len_code hufftables,match_length,code,code_len,tmp0 219 orr code,code,code2 226 update_bits stream,code,code_len,m_bits,m_bit_count,m_out_buf 236 get_lit_code hufftables,literal,code,code_len 242 update_bits stream,code,code_len,m_bits,m_bit_count,m_out_buf
|
| /isa-l/ |
| H A D | CONTRIBUTING.md | 13 ISA-L is licensed using a BSD 3-clause [license]. All code submitted to 28 The coding style for ISA-L C code is roughly based on LLVM style with 29 some customizations. Use the included format script to format C code.
|
| H A D | Release_notes.txt | 27 * Fixed Windows build on erasure code performance applications. 104 * Fix erasure code test that violates rs matrix bounds. 136 affects windows versions of erasure code. GP register saves/restore were 199 * Erasure code improvements 250 * Erasure code examples 312 - Fast custom Huffman code generation. 329 * Erasure code updates. New AVX512 versions. 345 * Erasure code improvements 353 * Incremental erasure code. New functions added to erasure code t [all...] |
| /isa-l/erasure_code/ |
| H A D | gf_2vect_dot_prod_avx.asm | 7 ; * Redistributions of source code must retain the above copyright 187 %ifidn PS,4 ;32-bit code 209 %ifidn PS,8 ; 64-bit code 216 %ifidn PS,8 ;64-bit code 227 %else ;32-bit code 287 %ifidn PS,4 ; 32-bit code
|
| H A D | gf_2vect_dot_prod_sse.asm | 7 ; * Redistributions of source code must retain the above copyright 187 %ifidn PS,4 ;32-bit code 209 %ifidn PS,8 ;64-bit code 216 %ifidn PS,8 ;64-bit code 227 %else ;32-bit code 288 %ifidn PS,4 ;32-bit code
|
| H A D | gf_2vect_dot_prod_avx2.asm | 7 ; * Redistributions of source code must retain the above copyright 193 %ifidn PS,4 ;32-bit code 216 %ifidn PS,8 ;64-bit code 223 %ifidn PS,8 ;64-bit code 235 %else ;32-bit code 307 %ifidn PS,4 ; 32-bit code
|
| H A D | gf_4vect_dot_prod_sse.asm | 7 ; * Redistributions of source code must retain the above copyright 227 %ifidn PS,4 ;32-bit code 252 %ifidn PS,8 ; 64-bit code 260 %ifidn PS,8 ;64-bit code 332 %ifidn PS,8 ;64-bit code 350 %else ;32-bit code 377 %ifidn PS,4 ;32-bit code
|
| H A D | gf_4vect_dot_prod_avx.asm | 7 ; * Redistributions of source code must retain the above copyright 227 %ifidn PS,4 ;32-bit code 252 %ifidn PS,8 ; 64-bit code 260 %ifidn PS,8 ;64-bit code 332 %ifidn PS,8 ;64-bit code 349 %else ;32-bit code 375 %ifidn PS,4 ;32-bit code
|
| H A D | gf_3vect_dot_prod_sse.asm | 7 ; * Redistributions of source code must retain the above copyright 202 %ifidn PS,4 ;32-bit code 225 %ifidn PS,8 ; 64-bit code 233 %ifidn PS,8 ;64-bit code 324 %ifidn PS,4 ;32-bit code
|