Home
last modified time | relevance | path

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

/external/angle/src/common/
Dmathutil.cpp49 const float red_c = std::max<float>(0, std::min(g_sharedexp_max, red)); in convertRGBFloatsTo999E5() local
53 const float max_c = std::max<float>(std::max<float>(red_c, green_c), blue_c); in convertRGBFloatsTo999E5()
63 output.R = static_cast<unsigned int>(floor((red_c / pow2_exp) + 0.5f)); in convertRGBFloatsTo999E5()
/external/swiftshader/tests/MathUnitTests/
Dunittests.cpp67 const float red_c = clamp0hi(r, g_sharedexp_max); in RGB9E5_reference() local
71 const float max_c = fmax(fmax(red_c, green_c), blue_c); in RGB9E5_reference()
76 …unsigned int R = static_cast<unsigned int>(floor((red_c / exp2(exp_s - g_sharedexp_bias - g_shared… in RGB9E5_reference()
/external/swiftshader/src/System/
DHalf.hpp85 const float red_c = std::min(!(r > 0) ? 0 : r, g_sharedexp_max); in RGB9E5() local
93 const float red_r = bit_cast<float>(bit_cast<int>(red_c) + half); in RGB9E5()
107 R = static_cast<unsigned int>(round(red_c * scale)); in RGB9E5()
/external/deqp/external/openglcts/modules/common/
DglcInternalformatTests.cpp696 GLfloat red_c = deFloatMax(0, deFloatMin(sharedExpMax, red)); in convertUint_5_9_9_9_rev() local
700 GLfloat max_c = deFloatMax(deFloatMax(red_c, green_c), blue_c); in convertUint_5_9_9_9_rev()
713 GLfloat red_s = deFloatFloor(red_c / deFloatPow(2.0f, exp_s - (float)B - (float)N) + 0.5f); in convertUint_5_9_9_9_rev()
DglcPackedPixelsTests.cpp1419 GLfloat red_c = deFloatMax(0, deFloatMin(sharedExpMax, red)); in unpack_UNSIGNED_INT_5_9_9_9_REV() local
1423 GLfloat max_c = deFloatMax(deFloatMax(red_c, green_c), blue_c); in unpack_UNSIGNED_INT_5_9_9_9_REV()
1436 GLfloat red_s = deFloatFloor(red_c / deFloatPow(2.0f, exp_s - (float)B - (float)N) + 0.5f); in unpack_UNSIGNED_INT_5_9_9_9_REV()
/external/swiftshader/src/Device/
DBlitter.cpp693 Float red_c = Min(IfThenElse(!(c.x > 0), Float(0), Float(c.x)), sharedexp_max); in write() local
701 Float red_r = As<Float>(As<Int>(red_c) + half); in write()
715 UInt R9 = RoundInt(red_c * scale); in write()