diff options
author | Nathan Moinvaziri <nathan@solidstatenetworks.com> | 2020-03-17 18:03:15 -0700 |
---|---|---|
committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2020-06-28 11:16:05 +0200 |
commit | e40d88adc9e8180969c6c56a0deb4ec69c3ec92b (patch) | |
tree | bdf66efd66337cf504c438dc54e620d5ce959c08 /functable.h | |
parent | 0cab92e7faa5fb05bafd9c587918158cc933ed1d (diff) |
Split memcopy by architecture.
Use uint8_t[8] struct on big-endian machines for speed.
Diffstat (limited to 'functable.h')
-rw-r--r-- | functable.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/functable.h b/functable.h index d9babe5..4571242 100644 --- a/functable.h +++ b/functable.h @@ -16,9 +16,14 @@ struct functable_s { void (* slide_hash) (deflate_state *s); int32_t (* compare258) (const unsigned char *src0, const unsigned char *src1); int32_t (* longest_match) (deflate_state *const s, Pos cur_match); + uint32_t (* chunksize) (void); + uint8_t* (* chunkcopy) (uint8_t *out, uint8_t const *from, unsigned len); + uint8_t* (* chunkcopy_safe) (uint8_t *out, uint8_t const *from, unsigned len, uint8_t *safe); + uint8_t* (* chunkunroll) (uint8_t *out, unsigned *dist, unsigned *len); + uint8_t* (* chunkmemset) (uint8_t *out, unsigned dist, unsigned len); + uint8_t* (* chunkmemset_safe) (uint8_t *out, unsigned dist, unsigned len, unsigned left); }; ZLIB_INTERNAL extern __thread struct functable_s functable; - #endif |