| 1131 | /// \param arg value to round |
| 1132 | /// \return rounded value |
| 1133 | MEGDNN_HOST MEGDNN_DEVICE static bfloat16 floor(bfloat16 arg) { |
| 1134 | return bfloat16( |
| 1135 | binary_t(), |
| 1136 | round_bfloat16<std::round_toward_neg_infinity>(arg.data_)); |
| 1137 | } |
| 1138 | |
| 1139 | /// Ceiling implementation. |
| 1140 | /// \param arg value to round |