Home
last modified time | relevance | path

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

/external/angle/src/common/
Dmathutil.cpp50 const float green_c = std::max<float>(0, std::min(g_sharedexp_max, green)); in convertRGBFloatsTo999E5() local
53 const float max_c = std::max<float>(std::max<float>(red_c, green_c), blue_c); in convertRGBFloatsTo999E5()
64 output.G = static_cast<unsigned int>(floor((green_c / pow2_exp) + 0.5f)); in convertRGBFloatsTo999E5()
/external/swiftshader/src/System/
DHalf.hpp92 const float green_c = std::min(!(g > 0) ? 0 : g, g_sharedexp_max); in RGB9E5() local
100 const float green_r = bit_cast<float>(bit_cast<int>(green_c) + half); in RGB9E5()
114 G = static_cast<unsigned int>(round(green_c * scale)); in RGB9E5()
/external/swiftshader/tests/MathUnitTests/
Dunittests.cpp557 const float green_c = clamp0hi(g, g_sharedexp_max); in RGB9E5_reference() local
560 const float max_c = fmax(fmax(red_c, green_c), blue_c); in RGB9E5_reference()
566 …unsigned int G = static_cast<unsigned int>(floor((green_c / exp2(exp_s - g_sharedexp_bias - g_shar… in RGB9E5_reference()
/external/deqp/external/openglcts/modules/common/
DglcInternalformatTests.cpp697 GLfloat green_c = deFloatMax(0, deFloatMin(sharedExpMax, green)); 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()
714 GLfloat green_s = deFloatFloor(green_c / deFloatPow(2.0f, exp_s - (float)B - (float)N) + 0.5f); in convertUint_5_9_9_9_rev()
DglcPackedPixelsTests.cpp1421 GLfloat green_c = deFloatMax(0, deFloatMin(sharedExpMax, green)); in unpack_UNSIGNED_INT_5_9_9_9_REV() local
1424 GLfloat max_c = deFloatMax(deFloatMax(red_c, green_c), blue_c); in unpack_UNSIGNED_INT_5_9_9_9_REV()
1438 GLfloat green_s = deFloatFloor(green_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.cpp766 Float green_c = Min(IfThenElse(!(c.y > 0), Float(0), Float(c.y)), sharedexp_max); in write() local
774 Float green_r = As<Float>(As<Int>(green_c) + half); in write()
788 UInt G9 = UInt(RoundInt(green_c * scale)); in write()