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

Function npy_bswap4

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

Source from the content-addressed store, hash-verified

493}
494
495static inline npy_uint32
496npy_bswap4(npy_uint32 x)
497{
498#ifdef HAVE___BUILTIN_BSWAP32
499 return __builtin_bswap32(x);
500#else
501 return ((x & 0xffu) << 24) | ((x & 0xff00u) << 8) |
502 ((x & 0xff0000u) >> 8) | (x >> 24);
503#endif
504}
505
506static inline void
507npy_bswap4_unaligned(char * x)

Callers 1

_strided_byte_swapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected