Home
last modified time | relevance | path

Searched refs:inverseMax (Results 1 – 1 of 1) sorted by relevance

/external/angle/src/common/
Dmathutil.h492 constexpr double inverseMax = 1.0 / std::numeric_limits<T>::max(); in normalizedToFloat() local
493 return static_cast<float>(input * inverseMax); in normalizedToFloat()
497 constexpr float inverseMax = 1.0f / std::numeric_limits<T>::max(); in normalizedToFloat() local
498 return input * inverseMax; in normalizedToFloat()
511 constexpr double inverseMax = 1.0 / ((1 << inputBitCount) - 1); in normalizedToFloat() local
512 return static_cast<float>(input * inverseMax); in normalizedToFloat()
516 constexpr float inverseMax = 1.0f / ((1 << inputBitCount) - 1); in normalizedToFloat() local
517 return input * inverseMax; in normalizedToFloat()