MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / exp2

Method exp2

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

Binary exponential implementation. \param arg function argument \return function value stored in single-preicision

Source from the content-addressed store, hash-verified

1382 /// \param arg function argument
1383 /// \return function value stored in single-preicision
1384 static expr exp2(float arg)
1385 {
1386 #if HALF_ENABLE_CPP11_CMATH
1387 return expr(std::exp2(arg));
1388 #else
1389 return expr(static_cast<float>(std::exp(arg*0.69314718055994530941723212145818)));
1390 #endif
1391 }
1392
1393 /// Logarithm implementation.
1394 /// \param arg function argument

Callers

nothing calls this directly

Calls 3

exprClass · 0.85
expFunction · 0.85
exp2Function · 0.70

Tested by

no test coverage detected