Debian Codegraph @

src/c-blosc2/blosc/shuffle-neon.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 Note: Adapted for NEON by Lucian Marc.
9
10 See LICENSE.txt for details about copyright and rights to use.
11 **********************************************************************/
12
13 /* NEON-accelerated shuffle/unshuffle routines. */
14
15 #ifndef BLOSC_SHUFFLE_NEON_H
16 #define BLOSC_SHUFFLE_NEON_H
17
18 #include "blosc2/blosc2-common.h"
19
20 #include <stdint.h>
21 #include <stdbool.h>
22
23 /**
24 * NEON-accelerated (un)shuffle routines availability.
25 */
26 extern const bool is_shuffle_neon;
27
28 /**
29 NEON-accelerated shuffle routine.
30 */
31 BLOSC_NO_EXPORT void shuffle_neon(const int32_t bytesoftype, const int32_t blocksize,
32 const uint8_t* const _src, uint8_t* const _dest);
33
34 /**
35 NEON-accelerated unshuffle routine.
36 */
37 BLOSC_NO_EXPORT void unshuffle_neon(const int32_t bytesoftype, const int32_t blocksize,
38 const uint8_t *_src, uint8_t *_dest);
39
40 #endif /* BLOSC_SHUFFLE_NEON_H */