| 1 |
/********************************************************************* |
| 2 |
Blosc - Blocked Shuffling and Compression Library |
| 3 |
|
| 4 |
Copyright (c) 2021 Blosc Development Team <[email protected]> |
| 5 |
https://blosc.org |
| 6 |
License: BSD 3-Clause (see LICENSE.txt) |
| 7 |
|
| 8 |
See LICENSE.txt for details about copyright and rights to use. |
| 9 |
**********************************************************************/ |
| 10 |
|
| 11 |
/* SSE2-accelerated shuffle/unshuffle routines. */ |
| 12 |
|
| 13 |
#ifndef BLOSC_BITSHUFFLE_SSE2_H |
| 14 |
#define BLOSC_BITSHUFFLE_SSE2_H |
| 15 |
|
| 16 |
#include "blosc2/blosc2-common.h" |
| 17 |
|
| 18 |
#include <stddef.h> |
| 19 |
#include <stdint.h> |
| 20 |
#include <stdbool.h> |
| 21 |
|
| 22 |
/** |
| 23 |
* SSE2-accelerated bit(un)shuffle routines availability. |
| 24 |
*/ |
| 25 |
extern const bool is_bshuf_SSE; |
| 26 |
|
| 27 |
BLOSC_NO_EXPORT int64_t |
| 28 |
bshuf_trans_byte_elem_SSE(const void* in, void* out, const size_t size, |
| 29 |
const size_t elem_size); |
| 30 |
|
| 31 |
BLOSC_NO_EXPORT int64_t |
| 32 |
bshuf_trans_byte_bitrow_SSE(const void* in, void* out, const size_t size, |
| 33 |
const size_t elem_size); |
| 34 |
|
| 35 |
BLOSC_NO_EXPORT int64_t |
| 36 |
bshuf_shuffle_bit_eightelem_SSE(const void* in, void* out, const size_t size, |
| 37 |
const size_t elem_size); |
| 38 |
|
| 39 |
/** |
| 40 |
SSE2-accelerated bitshuffle routine. |
| 41 |
*/ |
| 42 |
BLOSC_NO_EXPORT int64_t |
| 43 |
bshuf_trans_bit_elem_SSE(const void* in, void* out, const size_t size, |
| 44 |
const size_t elem_size); |
| 45 |
|
| 46 |
/** |
| 47 |
SSE2-accelerated bitunshuffle routine. |
| 48 |
*/ |
| 49 |
BLOSC_NO_EXPORT int64_t |
| 50 |
bshuf_untrans_bit_elem_SSE(const void* in, void* out, const size_t size, |
| 51 |
const size_t elem_size); |
| 52 |
|
| 53 |
#endif /* BLOSC_BITSHUFFLE_SSE2_H */ |