MCPcopy Create free account
hub / github.com/apache/singa / signbit

Function signbit

include/half.hpp:4373–4373  ·  view source on GitHub ↗

Check sign. See also:** Documentation for [std::signbit](https://en.cppreference.com/w/cpp/numeric/math/signbit). \param arg number to check \retval true for negative number \retval false for positive number

Source from the content-addressed store, hash-verified

4371 /// \retval true for negative number
4372 /// \retval false for positive number
4373 inline HALF_CONSTEXPR bool signbit(half arg) { return (arg.data_&0x8000) != 0; }
4374
4375 /// \}
4376 /// \anchor compfunc

Callers 1

builtin_signbitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected