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

Function bitmask_u32

numpy/core/src/multiarray/dragon4.c:53–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53static inline npy_uint32
54bitmask_u32(npy_uint32 n)
55{
56 return ~(~((npy_uint32)0) << n);
57}
58
59/*
60 * Get the log base 2 of a 32-bit unsigned integer.

Calls

no outgoing calls

Tested by

no test coverage detected