MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / ldexp

Function ldexp

samples/common/half.h:3637–3640  ·  view source on GitHub ↗

Multiply by power of two. \param arg number to modify \param exp power of two to multiply with \return \a arg multplied by 2 raised to \a exp template typename enable ::type ldexp(T arg, int exp) { return functions::scalbln(arg, exp); }

Source from the content-addressed store, hash-verified

3635// template<typename T> typename enable<half,T>::type ldexp(T arg, int exp) { return functions::scalbln(arg, exp);
3636//}
3637inline half ldexp(half arg, int exp)
3638{
3639 return functions::scalbln(arg, exp);
3640}
3641inline half ldexp(expr arg, int exp)
3642{
3643 return functions::scalbln(arg, exp);

Callers 4

float2half_implFunction · 0.70
half2float_implFunction · 0.70
remainderMethod · 0.70
remquoMethod · 0.70

Calls 1

scalblnFunction · 0.70

Tested by

no test coverage detected