From f571a528b192abf999b165487d6f6d47d96fa344 Mon Sep 17 00:00:00 2001 From: x Date: Wed, 7 Jun 2023 13:58:24 +0200 Subject: [PATCH] FastpFor calls --- .../lib/ext/fastpfor.h | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 TurboPFor-Integer-Compression/lib/ext/fastpfor.h diff --git a/TurboPFor-Integer-Compression/lib/ext/fastpfor.h b/TurboPFor-Integer-Compression/lib/ext/fastpfor.h new file mode 100644 index 0000000..8bbfdc4 --- /dev/null +++ b/TurboPFor-Integer-Compression/lib/ext/fastpfor.h @@ -0,0 +1,20 @@ +#if defined(_MSC_VER) && _MSC_VER < 1600 +#include "vs/stdint.h" +#else +#include +#endif + +#ifdef __cplusplus +extern "C" { +#endif +unsigned FastPFore32( const uint32_t *in, unsigned n, unsigned char *out, unsigned outsize); +unsigned FastPFord32( const unsigned char *in, unsigned n, uint32_t *out); + +unsigned FastPFore128v32(const uint32_t *in, unsigned n, unsigned char *out, unsigned outsize); +unsigned FastPFord128v32(const unsigned char *in, unsigned n, uint32_t *out); + +unsigned OptPFore128v32( const uint32_t *in, unsigned n, unsigned char *out, unsigned outsize); +unsigned OptPFord128v32( const unsigned char *in, unsigned n, uint32_t *out); +#ifdef __cplusplus +} +#endif