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

Function CLONGDOUBLE_LT

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

Source from the content-addressed store, hash-verified

237
238
239static inline int
240CLONGDOUBLE_LT(npy_clongdouble a, npy_clongdouble b)
241{
242 int ret;
243
244 if (a.real < b.real) {
245 ret = a.imag == a.imag || b.imag != b.imag;
246 }
247 else if (a.real > b.real) {
248 ret = b.imag != b.imag && a.imag == a.imag;
249 }
250 else if (a.real == b.real || (a.real != a.real && b.real != b.real)) {
251 ret = a.imag < b.imag || (b.imag != b.imag && a.imag == a.imag);
252 }
253 else {
254 ret = b.real != b.real;
255 }
256
257 return ret;
258}
259
260
261static inline void

Callers 1

lessMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected