Debian Codegraph @

src/c-blosc2/blosc/shuffle-generic.c

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 #include "shuffle-generic.h"
12
13 /* Shuffle a block. This can never fail. */
14 void shuffle_generic(const int32_t bytesoftype, const int32_t blocksize,
15 const uint8_t *_src, uint8_t *_dest) {
16 /* Non-optimized shuffle */
17 shuffle_generic_inline(bytesoftype, 0, blocksize, _src, _dest);
18 }
19
20 /* Unshuffle a block. This can never fail. */
21 void unshuffle_generic(const int32_t bytesoftype, const int32_t blocksize,
22 const uint8_t *_src, uint8_t *_dest) {
23 /* Non-optimized unshuffle */
24 unshuffle_generic_inline(bytesoftype, 0, blocksize, _src, _dest);
25 }