* @brief Fast approximation of 1.0 / sqrt(val). * * @param v The input value. * * @return The approximated result. */
| 441 | * @return The approximated result. |
| 442 | */ |
| 443 | static inline float rsqrt(float v) |
| 444 | { |
| 445 | return 1.0f / std::sqrt(v); |
| 446 | } |
| 447 | |
| 448 | /** |
| 449 | * @brief Fast approximation of sqrt(val). |
no test coverage detected