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

Function LogBase2_64

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

Source from the content-addressed store, hash-verified

104}
105
106static npy_uint32
107LogBase2_64(npy_uint64 val)
108{
109 npy_uint64 temp;
110
111 temp = val >> 32;
112 if (temp) {
113 return 32 + LogBase2_32((npy_uint32)temp);
114 }
115
116 return LogBase2_32((npy_uint32)val);
117}
118
119#if defined(HAVE_LDOUBLE_IEEE_QUAD_LE) || defined(HAVE_LDOUBLE_IEEE_QUAD_BE)
120static npy_uint32

Calls 1

LogBase2_32Function · 0.85

Tested by

no test coverage detected