| 22 | // I compared each to the ones in DirectXMath and stdlib's for accuracy/performance. |
| 23 | |
| 24 | CPPSPMD_FORCE_INLINE vfloat fmod_inv(const vfloat& a, const vfloat& b, const vfloat& b_inv) |
| 25 | { |
| 26 | vfloat c = frac(abs(a * b_inv)) * abs(b); |
| 27 | return spmd_ternaryf(a < 0, -c, c); |
| 28 | } |
| 29 | |
| 30 | CPPSPMD_FORCE_INLINE vfloat fmod_inv_p(const vfloat& a, const vfloat& b, const vfloat& b_inv) |
| 31 | { |
nothing calls this directly
no test coverage detected