1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire
*/
/**
* This is purely for technical comparisons.
*
* Implementation of
*
* Willhalm T, Popovici N, Boshmaf Y, Plattner H, Zeier A, Schaffner J.
* SIMD-scan: ultra fast in-memory table scan using on-chip vector processing units.
* Proceedings of the VLDB Endowment Aug 2009; 2(1):385-394.
*
* Optimized for a recent Intel core i7 processor by D. Lemire on Oct. 2012.
*/
#ifndef HORIZONTALBITPACKING_H_
#define HORIZONTALBITPACKING_H_
#ifndef __SSE4_1__
#ifndef _MSC_VER
#pragma message "No SSSE4.1 support? try adding -msse4.1"
#else
#pragma message("No SSSE4.1 support? try adding -msse4.1")
#endif
#endif
#include "common.h"
namespace FastPFor {
void simdhunpack(const uint8_t * __restrict__ in,uint32_t * __restrict__ out, uint32_t bit);
}
#endif /* HORIZONTALBITPACKING_H_ */