numpy 2.0.0
|
Go to the source code of this file.
#define NPY_HALF_NAN (0x7e00u) |
Referenced by npy_half_spacing().
#define NPY_HALF_NEGONE (0xbc00u) |
#define NPY_HALF_NINF (0xfc00u) |
#define NPY_HALF_NZERO (0x8000u) |
#define NPY_HALF_ONE (0x3c00u) |
#define NPY_HALF_PINF (0x7c00u) |
Referenced by npy_half_spacing().
#define NPY_HALF_PZERO (0x0000u) |
#define NPY_HALF_ZERO (0x0000u) |
npy_half npy_double_to_half | ( | double | d | ) |
References npy_doublebits_to_halfbits().
Referenced by MyPyFloat_AsHalf(), PyUFunc_e_e_As_f_f(), and TOTYPE().
npy_uint16 npy_doublebits_to_halfbits | ( | npy_uint64 | d | ) |
Referenced by npy_double_to_half().
npy_half npy_float_to_half | ( | float | f | ) |
References npy_floatbits_to_halfbits().
Referenced by _nextafter(), and PyUFunc_e_e().
npy_uint16 npy_floatbits_to_halfbits | ( | npy_uint32 | f | ) |
References npy_set_floatstatus_underflow().
Referenced by npy_float_to_half().
int npy_half_isfinite | ( | npy_half | h | ) |
int npy_half_isinf | ( | npy_half | h | ) |
int npy_half_isnan | ( | npy_half | h | ) |
Referenced by UNICODE_copyswap().
<
<
<
<
int npy_half_signbit | ( | npy_half | h | ) |
<
<
<
<
<
<
References NPY_HALF_NAN, NPY_HALF_PINF, npy_set_floatstatus_invalid(), and npy_set_floatstatus_overflow().
double npy_half_to_double | ( | npy_half | h | ) |
References npy_halfbits_to_doublebits().
Referenced by MyPyFloat_FromHalf(), and PyUFunc_e_e_As_f_f().
float npy_half_to_float | ( | npy_half | h | ) |
References npy_halfbits_to_floatbits().
Referenced by _nextafter(), and PyUFunc_e_e().
npy_uint64 npy_halfbits_to_doublebits | ( | npy_uint16 | h | ) |
<
<
<
Referenced by npy_half_to_double().
npy_uint32 npy_halfbits_to_floatbits | ( | npy_uint16 | h | ) |
<
<
<
Referenced by npy_half_to_float().