MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / rsqrt

Function rsqrt

external/astc-encoder/Source/astcenc_mathlib.h:388–391  ·  view source on GitHub ↗

* @brief Fast approximation of 1.0 / sqrt(val). * * @param v The input value. * * @return The approximated result. */

Source from the content-addressed store, hash-verified

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

Callers 1

prepare_block_statisticsFunction · 0.85

Calls 1

sqrtFunction · 0.70

Tested by

no test coverage detected