shuffle-generic.c 915 B

12345678910111213141516171819202122232425
  1. /*********************************************************************
  2. Blosc - Blocked Shuffling and Compression Library
  3. Author: Francesc Alted <francesc@blosc.org>
  4. See LICENSES/BLOSC.txt for details about copyright and rights to use.
  5. **********************************************************************/
  6. #include "shuffle-generic.h"
  7. /* Shuffle a block. This can never fail. */
  8. void shuffle_generic(const size_t bytesoftype, const size_t blocksize,
  9. const uint8_t* const _src, uint8_t* const _dest)
  10. {
  11. /* Non-optimized shuffle */
  12. shuffle_generic_inline(bytesoftype, 0, blocksize, _src, _dest);
  13. }
  14. /* Unshuffle a block. This can never fail. */
  15. void unshuffle_generic(const size_t bytesoftype, const size_t blocksize,
  16. const uint8_t* const _src, uint8_t* const _dest)
  17. {
  18. /* Non-optimized unshuffle */
  19. unshuffle_generic_inline(bytesoftype, 0, blocksize, _src, _dest);
  20. }