Changeset 981e22c for thirdparty/blosc/shuffle.h
- Timestamp:
- 08/26/16 19:35:26 (8 years ago)
- Branches:
- master, pympi
- Children:
- 8ebc79b
- Parents:
- cda87e9
- git-author:
- Hal Finkel <hfinkel@…> (08/26/16 19:35:26)
- git-committer:
- Hal Finkel <hfinkel@…> (08/26/16 19:35:26)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
thirdparty/blosc/shuffle.h
r00587dc r981e22c 1 1 /********************************************************************* 2 Blosc - Blocked S uffling and Compression Library2 Blosc - Blocked Shuffling and Compression Library 3 3 4 Author: Francesc Alted <f [email protected]>4 Author: Francesc Alted <f[email protected]> 5 5 6 6 See LICENSES/BLOSC.txt for details about copyright and rights to use. 7 7 **********************************************************************/ 8 8 9 /* Shuffle/unshuffle routines which dynamically dispatch to hardware- 10 accelerated routines based on the processor's architecture. 11 Consumers should almost always prefer to call these routines instead 12 of directly calling one of the hardware-accelerated routines, since 13 these are cross-platform and future-proof. */ 9 14 10 /* Shuffle/unshuffle routines */ 15 #ifndef SHUFFLE_H 16 #define SHUFFLE_H 11 17 12 void shuffle(size_t bytesoftype, size_t blocksize, 13 unsigned char* _src, unsigned char* _dest); 18 #include "shuffle-common.h" 14 19 15 void unshuffle(size_t bytesoftype, size_t blocksize, 16 unsigned char* _src, unsigned char* _dest); 20 #ifdef __cplusplus 21 extern "C" { 22 #endif 23 24 /** 25 Primary shuffle and bitshuffle routines. 26 This function dynamically dispatches to the appropriate hardware-accelerated 27 routine based on the host processor's architecture. If the host processor is 28 not supported by any of the hardware-accelerated routines, the generic 29 (non-accelerated) implementation is used instead. 30 Consumers should almost always prefer to call this routine instead of directly 31 calling the hardware-accelerated routines because this method is both cross- 32 platform and future-proof. 33 */ 34 BLOSC_NO_EXPORT void 35 shuffle(const size_t bytesoftype, const size_t blocksize, 36 const uint8_t* _src, const uint8_t* _dest); 37 38 BLOSC_NO_EXPORT int 39 bitshuffle(const size_t bytesoftype, const size_t blocksize, 40 const uint8_t* const _src, const uint8_t* _dest, 41 const uint8_t* _tmp); 42 43 /** 44 Primary unshuffle and bitunshuffle routine. 45 This function dynamically dispatches to the appropriate hardware-accelerated 46 routine based on the host processor's architecture. If the host processor is 47 not supported by any of the hardware-accelerated routines, the generic 48 (non-accelerated) implementation is used instead. 49 Consumers should almost always prefer to call this routine instead of directly 50 calling the hardware-accelerated routines because this method is both cross- 51 platform and future-proof. 52 */ 53 BLOSC_NO_EXPORT void 54 unshuffle(const size_t bytesoftype, const size_t blocksize, 55 const uint8_t* _src, const uint8_t* _dest); 56 57 58 BLOSC_NO_EXPORT int 59 bitunshuffle(const size_t bytesoftype, const size_t blocksize, 60 const uint8_t* const _src, const uint8_t* _dest, 61 const uint8_t* _tmp); 62 63 #ifdef __cplusplus 64 } 65 #endif 66 67 #endif /* SHUFFLE_H */
Note: See TracChangeset
for help on using the changeset viewer.