MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / ldexp

Function ldexp

dnn/include/megdnn/dtype/half.hpp:2555–2555  ·  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

2553 /// \return \a arg multplied by 2 raised to \a exp
2554// template<typename T> typename enable<half,T>::type ldexp(T arg, int exp) { return functions::scalbln(arg, exp); }
2555 MEGDNN_HOST MEGDNN_DEVICE inline half ldexp(half arg, int exp) { return functions::scalbln(arg, exp); }
2556 MEGDNN_HOST MEGDNN_DEVICE inline half ldexp(expr arg, int exp) { return functions::scalbln(arg, exp); }
2557
2558 /// Extract integer and fractional parts.

Callers 5

float2half_implFunction · 0.70
remainderMethod · 0.70
remquoMethod · 0.70
stbi__hdr_convertFunction · 0.50
TESTFunction · 0.50

Calls 1

scalblnFunction · 0.70

Tested by 1

TESTFunction · 0.40