Function tvm::ffi::ByteSwap#
Defined in File endian.h
Function Documentation#
-
inline void tvm::ffi::ByteSwap(void *data, size_t elem_bytes, size_t num_elems)#
A generic inplace byte swapping function.
Note
Always try pass in constant elem_bytes to enable compiler optimization
- Parameters:
data – The data pointer.
elem_bytes – The number of bytes of the data elements
num_elems – Number of elements in the data.