| 1064 | /// \param y second operand |
| 1065 | /// \return Half-precision division remainder stored in single-precision |
| 1066 | MEGDNN_HOST MEGDNN_DEVICE static expr fmod(float x, float y) { |
| 1067 | #if defined(__CUDA_ARCH__) |
| 1068 | return expr(fmodf(x, y)); |
| 1069 | #else |
| 1070 | return expr(std::fmod(x, y)); |
| 1071 | #endif |
| 1072 | } |
| 1073 | |
| 1074 | /// Remainder implementation. |
| 1075 | /// \param x first operand |