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

Function log2

samples/common/half.h:3150–3153  ·  view source on GitHub ↗

Binary logorithm. \param arg function argument \return logarithm of \a arg to base 2 template typename enable ::type log2(T arg) { return functions::log2(arg); }

Source from the content-addressed store, hash-verified

3148/// \return logarithm of \a arg to base 2
3149// template<typename T> typename enable<expr,T>::type log2(T arg) { return functions::log2(arg); }
3150inline expr log2(half arg)
3151{
3152 return functions::log2(arg);
3153}
3154inline expr log2(expr arg)
3155{
3156 return functions::log2(arg);

Callers 1

log2Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected