| 748 | /// \param y second operand |
| 749 | /// \return bfloat16 division remainder stored in single-precision |
| 750 | MEGDNN_HOST MEGDNN_DEVICE static expr fmod(float x, float y) { |
| 751 | #if defined(__CUDA_ARCH__) |
| 752 | return expr(fmodf(x, y)); |
| 753 | #else |
| 754 | return expr(std::fmod(x, y)); |
| 755 | #endif |
| 756 | } |
| 757 | |
| 758 | /// Remainder implementation. |
| 759 | /// \param x first operand |