Home
last modified time | relevance | path

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

/external/angle/src/libANGLE/renderer/metal/shaders/
Dcommon.h214 constexpr float inverseMax = 1.0f / ((1 << inputBitCount) - 1); in normalizedToFloat() local
215 return input * inverseMax; in normalizedToFloat()
227 constexpr float inverseMax = 1.0f / 0x7fff; in normalizedToFloat() local
228 return static_cast<float>(input) * inverseMax; in normalizedToFloat()
234 constexpr float inverseMax = 1.0f / 0x7fffffff; in normalizedToFloat() local
235 return static_cast<float>(input) * inverseMax; in normalizedToFloat()
241 constexpr float inverseMax = 1.0f / 0xffffffff; in normalizedToFloat() local
242 return static_cast<float>(input) * inverseMax; in normalizedToFloat()
Dmtl_default_shaders_src_autogen.inc246 constexpr float inverseMax = 1.0f / ((1 << inputBitCount) - 1);
247 return input * inverseMax;
259 constexpr float inverseMax = 1.0f / 0x7fff;
260 return static_cast<float>(input) * inverseMax;
266 constexpr float inverseMax = 1.0f / 0x7fffffff;
267 return static_cast<float>(input) * inverseMax;
273 constexpr float inverseMax = 1.0f / 0xffffffff;
274 return static_cast<float>(input) * inverseMax;
/external/angle/src/common/
Dmathutil.h504 constexpr double inverseMax = 1.0 / std::numeric_limits<T>::max(); in normalizedToFloat() local
505 return static_cast<float>(input * inverseMax); in normalizedToFloat()
509 constexpr float inverseMax = 1.0f / std::numeric_limits<T>::max(); in normalizedToFloat() local
510 return input * inverseMax; in normalizedToFloat()
524 constexpr double inverseMax = 1.0 / ((1 << inputBitCount) - 1); in normalizedToFloat() local
525 return static_cast<float>(input * inverseMax); in normalizedToFloat()
529 constexpr float inverseMax = 1.0f / ((1 << inputBitCount) - 1); in normalizedToFloat() local
530 return input * inverseMax; in normalizedToFloat()