-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbitpackingaligned.h
40 lines (31 loc) · 1.54 KB
/
bitpackingaligned.h
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
/**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire, http://lemire.me/en/
*/
#ifndef BITPACKINGALIGNED_H_
#define BITPACKINGALIGNED_H_
#include "common.h"
namespace FastPForLib {
const uint32_t *fastunpack_8(const uint32_t *__restrict__ in,
uint32_t *__restrict__ out, const uint32_t bit);
uint32_t *fastpackwithoutmask_8(const uint32_t *__restrict__ in,
uint32_t *__restrict__ out, const uint32_t bit);
const uint32_t *fastunpack_16(const uint32_t *__restrict__ in,
uint32_t *__restrict__ out, const uint32_t bit);
uint32_t *fastpackwithoutmask_16(const uint32_t *__restrict__ in,
uint32_t *__restrict__ out,
const uint32_t bit);
const uint32_t *fastunpack_24(const uint32_t *__restrict__ in,
uint32_t *__restrict__ out, const uint32_t bit);
uint32_t *fastpackwithoutmask_24(const uint32_t *__restrict__ in,
uint32_t *__restrict__ out,
const uint32_t bit);
const uint32_t *fastunpack_32(const uint32_t *__restrict__ in,
uint32_t *__restrict__ out, const uint32_t bit);
uint32_t *fastpackwithoutmask_32(const uint32_t *__restrict__ in,
uint32_t *__restrict__ out,
const uint32_t bit);
} // namespace FastPForLib
#endif /* BITPACKINGALIGNED_H_ */