Coverage Report

Created: 2024-09-08 06:38

/src/c-blosc2/blosc/shuffle-generic.c
Line
Count
Source
1
/*********************************************************************
2
  Blosc - Blocked Shuffling and Compression Library
3
4
  Copyright (c) 2021  Blosc Development Team <blosc@blosc.org>
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
13.4k
                     const uint8_t *_src, uint8_t *_dest) {
16
  /* Non-optimized shuffle */
17
13.4k
  shuffle_generic_inline(bytesoftype, 0, blocksize, _src, _dest);
18
13.4k
}
19
20
/* Unshuffle a block.  This can never fail. */
21
void unshuffle_generic(const int32_t bytesoftype, const int32_t blocksize,
22
10.1k
                       const uint8_t *_src, uint8_t *_dest) {
23
  /* Non-optimized unshuffle */
24
10.1k
  unshuffle_generic_inline(bytesoftype, 0, blocksize, _src, _dest);
25
10.1k
}