MCPcopy Create free account
hub / github.com/numpy/numpy / npy_bswap2_unaligned

Function npy_bswap2_unaligned

numpy/core/src/common/lowlevel_strided_loops.h:487–493  ·  view source on GitHub ↗

* treat as int16 and byteswap unaligned memory, * some cpus don't support unaligned access */

Source from the content-addressed store, hash-verified

485 * some cpus don't support unaligned access
486 */
487static inline void
488npy_bswap2_unaligned(char * x)
489{
490 char a = x[0];
491 x[0] = x[1];
492 x[1] = a;
493}
494
495static inline npy_uint32
496npy_bswap4(npy_uint32 x)

Callers 1

_strided_byte_swapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected