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

Function ldexp

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

Multiply by power of two. This function is exact to rounding for all rounding modes. See also:** Documentation for [std::ldexp](https://en.cppreference.com/w/cpp/numeric/math/ldexp). \param arg number to modify \param exp power of two to multiply with \return \a arg multplied by 2 raised to \a exp \exception FE_INVALID for signaling NaN \exception FE_OVERFLOW, ...UNDERFLOW, ...INEXACT according t

Source from the content-addressed store, hash-verified

4183 /// \exception FE_INVALID for signaling NaN
4184 /// \exception FE_OVERFLOW, ...UNDERFLOW, ...INEXACT according to rounding
4185 inline half ldexp(half arg, int exp) { return scalbln(arg, exp); }
4186
4187 /// Extract integer and fractional parts.
4188 /// **See also:** Documentation for [std::modf](https://en.cppreference.com/w/cpp/numeric/math/modf).

Callers 2

float2half_implFunction · 0.85
half2float_implFunction · 0.85

Calls 1

scalblnFunction · 0.85

Tested by

no test coverage detected