diff options
| author | Matheus Castanho <msc@linux.ibm.com> | 2022-04-16 17:12:53 -0700 |
|---|---|---|
| committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2022-05-07 14:06:42 +0200 |
| commit | 02d10b252cc54159f7c33823048daec4b023fb22 (patch) | |
| tree | 86bad9d043100a7f0ad53d3a66543ab92457389a /cpu_features.h | |
| parent | d45b27a4896d0c02d13950f91dd032dce1836128 (diff) | |
| download | Project-Tick-02d10b252cc54159f7c33823048daec4b023fb22.tar.gz Project-Tick-02d10b252cc54159f7c33823048daec4b023fb22.zip | |
Implement power9 version of compare256.
Co-authored-by: Nathan Moinvaziri <nathan@nathanm.com>
Diffstat (limited to 'cpu_features.h')
| -rw-r--r-- | cpu_features.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cpu_features.h b/cpu_features.h index 504c6a93e7..861ae0c4d8 100644 --- a/cpu_features.h +++ b/cpu_features.h @@ -130,6 +130,9 @@ extern uint32_t compare256_avx2(const uint8_t *src0, const uint8_t *src1); #if defined(ARM_NEON) && defined(HAVE_BUILTIN_CTZLL) extern uint32_t compare256_neon(const uint8_t *src0, const uint8_t *src1); #endif +#ifdef POWER9 +extern uint32_t compare256_power9(const uint8_t *src0, const uint8_t *src1); +#endif #ifdef DEFLATE_H_ /* insert_string */ @@ -160,6 +163,9 @@ extern uint32_t longest_match_avx2(deflate_state *const s, Pos cur_match); #if defined(ARM_NEON) && defined(HAVE_BUILTIN_CTZLL) extern uint32_t longest_match_neon(deflate_state *const s, Pos cur_match); #endif +#ifdef POWER9 +extern uint32_t longest_match_power9(deflate_state *const s, Pos cur_match); +#endif /* longest_match_slow */ extern uint32_t longest_match_slow_c(deflate_state *const s, Pos cur_match); @@ -179,6 +185,9 @@ extern uint32_t longest_match_slow_avx2(deflate_state *const s, Pos cur_match); #if defined(ARM_NEON) && defined(HAVE_BUILTIN_CTZLL) extern uint32_t longest_match_slow_neon(deflate_state *const s, Pos cur_match); #endif +#ifdef POWER9 +extern uint32_t longest_match_slow_power9(deflate_state *const s, Pos cur_match); +#endif /* quick_insert_string */ extern Pos quick_insert_string_c(deflate_state *const s, const uint32_t str); |
