| 493 | } |
| 494 | |
| 495 | static inline npy_uint32 |
| 496 | npy_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 | |
| 506 | static inline void |
| 507 | npy_bswap4_unaligned(char * x) |
no outgoing calls
no test coverage detected