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

Method logb

dnn/include/megdnn/dtype/bfloat16.hpp:1228–1231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1226 /// \param arg number to query
1227 /// \return floating point exponent
1228 MEGDNN_HOST MEGDNN_DEVICE static bfloat16 logb(bfloat16 arg) {
1229 return bfloat16(binary_t(),
1230 float2bfloat16<bfloat16::round_style>(std::logb(arg)));
1231 }
1232
1233 /// Enumeration implementation.
1234 /// \param from number to increase/decrease

Callers

nothing calls this directly

Calls 3

bfloat16Class · 0.85
binary_tClass · 0.70
logbFunction · 0.70

Tested by

no test coverage detected