summaryrefslogtreecommitdiff
path: root/crc32c.h
diff options
context:
space:
mode:
authorAli Saidi <alisaidi@amazon.com>2020-08-19 00:13:28 -0500
committerdormando <dormando@rydia.net>2020-10-27 17:54:21 -0700
commit9bb323ca3447421ee30ef26d1e48896d2d80b742 (patch)
tree85e42574ea1e877881d25ae35cdc1d4f6c754275 /crc32c.h
parenteb1bc72b9497e2c0e77d66740dc3053b6855a89a (diff)
downloadmemcached-9bb323ca3447421ee30ef26d1e48896d2d80b742.tar.gz
arm64: Re-add arm crc32c hw acceleration
Use the .arch_extension directive so that a config options and special cflags aren't required. Add a few tests for both the software and hardware implementations
Diffstat (limited to 'crc32c.h')
-rw-r--r--crc32c.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/crc32c.h b/crc32c.h
index 10ffd4f..1fcf927 100644
--- a/crc32c.h
+++ b/crc32c.h
@@ -17,4 +17,7 @@ extern crc_func crc32c;
void crc32c_init(void);
+// Expose a prototype for the crc32c software variant simply for testing purposes
+uint32_t crc32c_sw(uint32_t crc, void const *buf, size_t len);
+
#endif /* CRC32C_H */