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

Method frexp

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

Source from the content-addressed store, hash-verified

1189 /// \param exp address to store exponent at
1190 /// \return normalized significant
1191 MEGDNN_HOST MEGDNN_DEVICE static bfloat16 frexp(float arg, int* exp) {
1192 return bfloat16(binary_t(), float2bfloat16<bfloat16::round_style>(
1193 std::frexp(arg, exp)));
1194 }
1195
1196 /// Decompression implementation.
1197 /// \param arg number to decompress

Callers

nothing calls this directly

Calls 3

bfloat16Class · 0.85
binary_tClass · 0.70
frexpFunction · 0.70

Tested by

no test coverage detected