| 1140 | /// \param arg value to round |
| 1141 | /// \return rounded value |
| 1142 | MEGDNN_HOST MEGDNN_DEVICE static bfloat16 ceil(bfloat16 arg) { |
| 1143 | return bfloat16(binary_t(), |
| 1144 | round_bfloat16<std::round_toward_infinity>(arg.data_)); |
| 1145 | } |
| 1146 | |
| 1147 | /// Truncation implementation. |
| 1148 | /// \param arg value to round |