| 1163 | /// \param arg value to round |
| 1164 | /// \return rounded value |
| 1165 | MEGDNN_HOST MEGDNN_DEVICE static bfloat16 rint(bfloat16 arg) { |
| 1166 | return bfloat16(binary_t(), |
| 1167 | round_bfloat16<bfloat16::round_style>(arg.data_)); |
| 1168 | } |
| 1169 | |
| 1170 | /// Nearest integer implementation. |
| 1171 | /// \param arg value to round |