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

Function npy_bswap2

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

byte swapping functions */

Source from the content-addressed store, hash-verified

475
476/* byte swapping functions */
477static inline npy_uint16
478npy_bswap2(npy_uint16 x)
479{
480 return ((x & 0xffu) << 8) | (x >> 8);
481}
482
483/*
484 * treat as int16 and byteswap unaligned memory,

Callers 1

_strided_byte_swapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected