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

Function __npy_inff

numpy/core/include/numpy/npy_math.h:27–31  ·  view source on GitHub ↗

* NAN and INFINITY like macros (same behavior as glibc for NAN, same as C99 * for INFINITY) * * XXX: I should test whether INFINITY and NAN are available on the platform */

Source from the content-addressed store, hash-verified

25 * XXX: I should test whether INFINITY and NAN are available on the platform
26 */
27static inline float __npy_inff(void)
28{
29 const union { npy_uint32 __i; float __f;} __bint = {0x7f800000UL};
30 return __bint.__f;
31}
32
33static inline float __npy_nanf(void)
34{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected