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

Function HALF_LT

numpy/core/src/npysort/npysort_common.h:175–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173
174
175static inline int
176HALF_LT(npy_half a, npy_half b)
177{
178 int ret;
179
180 if (_npy_half_isnan(b)) {
181 ret = !_npy_half_isnan(a);
182 }
183 else {
184 ret = !_npy_half_isnan(a) && _npy_half_lt_nonan(a, b);
185 }
186
187 return ret;
188}
189
190/*
191 * For inline functions SUN recommends not using a return in the then part

Callers 1

lessMethod · 0.85

Calls 2

_npy_half_isnanFunction · 0.85
_npy_half_lt_nonanFunction · 0.85

Tested by

no test coverage detected