diff options
author | Brotli <no-reply@google.com> | 2024-05-09 12:41:57 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2024-05-09 12:42:42 -0700 |
commit | 04388304a6f8181cc1f022cc9e95dbb3bfe829a3 (patch) | |
tree | 011d53054fa77ae69a957f5781976bcf79890951 /c/enc/backward_references.c | |
parent | bb809ac908a4b42772eaf4f5e9fb66ca7886a6c9 (diff) | |
download | brotli-04388304a6f8181cc1f022cc9e95dbb3bfe829a3.zip brotli-04388304a6f8181cc1f022cc9e95dbb3bfe829a3.tar.gz brotli-04388304a6f8181cc1f022cc9e95dbb3bfe829a3.tar.bz2 |
Use a hash table header and SIMD to speed up hash table operations (similar to [Swiss Tables](https://abseil.io/about/design/swisstables)).
PiperOrigin-RevId: 632238409
Diffstat (limited to 'c/enc/backward_references.c')
-rw-r--r-- | c/enc/backward_references.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/c/enc/backward_references.c b/c/enc/backward_references.c index 2531ceb..f600e64 100644 --- a/c/enc/backward_references.c +++ b/c/enc/backward_references.c @@ -116,18 +116,6 @@ static BROTLI_INLINE size_t ComputeDistanceCode(size_t distance, #include "backward_references_inc.h" #undef HASHER -#if defined(BROTLI_MAX_SIMD_QUALITY) -#define HASHER() H58 -/* NOLINTNEXTLINE(build/include) */ -#include "backward_references_inc.h" -#undef HASHER - -#define HASHER() H68 -/* NOLINTNEXTLINE(build/include) */ -#include "backward_references_inc.h" -#undef HASHER -#endif - #undef ENABLE_COMPOUND_DICTIONARY #undef PREFIX #define PREFIX() D @@ -161,16 +149,6 @@ static BROTLI_INLINE size_t ComputeDistanceCode(size_t distance, /* NOLINTNEXTLINE(build/include) */ #include "backward_references_inc.h" #undef HASHER -#if defined(BROTLI_MAX_SIMD_QUALITY) -#define HASHER() H58 -/* NOLINTNEXTLINE(build/include) */ -#include "backward_references_inc.h" -#undef HASHER -#define HASHER() H68 -/* NOLINTNEXTLINE(build/include) */ -#include "backward_references_inc.h" -#undef HASHER -#endif #undef ENABLE_COMPOUND_DICTIONARY #undef PREFIX @@ -196,10 +174,6 @@ void BrotliCreateBackwardReferences(size_t num_bytes, return; CASE_(5) CASE_(6) -#if defined(BROTLI_MAX_SIMD_QUALITY) - CASE_(58) - CASE_(68) -#endif CASE_(40) CASE_(41) CASE_(42) |