MCPcopy Create free account
hub / github.com/OpenNMT/CTranslate2 / isnormal

Function isnormal

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

Check if normal number. See also:** Documentation for [std::isnormal](https://en.cppreference.com/w/cpp/numeric/math/isnormal). \param arg number to check \retval true if normal number \retval false if either subnormal, zero, infinity or NaN

Source from the content-addressed store, hash-verified

4390 /// \retval true if normal number
4391 /// \retval false if either subnormal, zero, infinity or NaN
4392 inline HALF_CONSTEXPR bool isnormal(half arg) { return ((arg.data_&0x7C00)!=0) & ((arg.data_&0x7C00)!=0x7C00); }
4393
4394 /// Check sign.
4395 /// **See also:** Documentation for [std::signbit](https://en.cppreference.com/w/cpp/numeric/math/signbit).

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected