MCPcopy Create free account
hub / github.com/ARM-software/astc-encoder / rsqrt

Function rsqrt

Source/astcenc_mathlib.h:443–446  ·  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

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

Callers 1

prepare_block_statisticsFunction · 0.85

Calls 1

sqrtFunction · 0.70

Tested by

no test coverage detected