* @brief Fast approximation of 1.0 / sqrt(val). * * @param v The input value. * * @return The approximated result. */
| 386 | * @return The approximated result. |
| 387 | */ |
| 388 | static inline float rsqrt(float v) |
| 389 | { |
| 390 | return 1.0f / std::sqrt(v); |
| 391 | } |
| 392 | |
| 393 | /** |
| 394 | * @brief Fast approximation of sqrt(val). |
no test coverage detected