| 1148 | /// \param arg value to round |
| 1149 | /// \return rounded value |
| 1150 | MEGDNN_HOST MEGDNN_DEVICE static bfloat16 trunc(bfloat16 arg) { |
| 1151 | return bfloat16(binary_t(), |
| 1152 | round_bfloat16<std::round_toward_zero>(arg.data_)); |
| 1153 | } |
| 1154 | |
| 1155 | /// Nearest integer implementation. |
| 1156 | /// \param arg value to round |