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

Function npy_bswap4_unaligned

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

Source from the content-addressed store, hash-verified

504}
505
506static inline void
507npy_bswap4_unaligned(char * x)
508{
509 char a = x[0];
510 x[0] = x[3];
511 x[3] = a;
512 a = x[1];
513 x[1] = x[2];
514 x[2] = a;
515}
516
517static inline npy_uint64
518npy_bswap8(npy_uint64 x)

Callers 5

_strided_byte_swapFunction · 0.85
npy_to_floatFunction · 0.85
npy_to_cfloatFunction · 0.85
npy_to_unicodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected