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