MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / builtin_signbit

Function builtin_signbit

extern/half/include/half.hpp:449–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

447 /// \retval true if signbit set
448 /// \retval false else
449 template<typename T> bool builtin_signbit(T arg)
450 {
451 #if HALF_ENABLE_CPP11_CMATH
452 return std::signbit(arg);
453 #else
454 return arg < T() || (arg == T() && T(1)/arg < T());
455 #endif
456 }
457
458 /// \}
459 /// \name Conversion

Callers 7

float2half_implFunction · 0.85
remainderMethod · 0.85
remquoMethod · 0.85
cbrtMethod · 0.85
tgammaMethod · 0.85
nexttowardMethod · 0.85
erfMethod · 0.85

Calls 1

signbitFunction · 0.70

Tested by

no test coverage detected