| 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 |