Debian Codegraph @

src/c-blosc2/blosc/shuffle-sse2.h

raw
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_SHUFFLE_SSE2_H
14 #define BLOSC_SHUFFLE_SSE2_H
15
16 #include "blosc2/blosc2-common.h"
17
18 #include <stdint.h>
19 #include <stdbool.h>
20
21 /**
22 * SSE2-accelerated (un)shuffle routines availability.
23 */
24 extern const bool is_shuffle_sse2;
25
26 /**
27 SSE2-accelerated shuffle routine.
28 */
29 BLOSC_NO_EXPORT void shuffle_sse2(const int32_t bytesoftype, const int32_t blocksize,
30 const uint8_t *_src, uint8_t *_dest);
31
32 /**
33 SSE2-accelerated unshuffle routine.
34 */
35 BLOSC_NO_EXPORT void unshuffle_sse2(const int32_t bytesoftype, const int32_t blocksize,
36 const uint8_t *_src, uint8_t *_dest);
37
38 #endif /* BLOSC_SHUFFLE_SSE2_H */