Home
last modified time | relevance | path

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

/external/angle/src/common/
Dmathutil.cpp54 const float exp_p = in convertRGBFloatsTo999E5() local
57 floor((max_c / (pow(2.0f, exp_p - g_sharedexp_biased_mantissabits))) + 0.5f)); in convertRGBFloatsTo999E5()
59 static_cast<int>((max_s < pow(2.0f, g_sharedexp_mantissabits)) ? exp_p : exp_p + 1); in convertRGBFloatsTo999E5()
/external/swiftshader/tests/MathUnitTests/
Dunittests.cpp72 const float exp_p = fmax(-g_sharedexp_bias - 1, floor(log2(max_c))) + 1 + g_sharedexp_bias; in RGB9E5_reference() local
73 …const int max_s = static_cast<int>(floor((max_c / exp2(exp_p - g_sharedexp_bias - g_sharedexp_mant… in RGB9E5_reference()
74 const int exp_s = static_cast<int>((max_s < exp2(g_sharedexp_mantissabits)) ? exp_p : exp_p + 1); in RGB9E5_reference()
/external/deqp/external/openglcts/modules/common/
DglcInternalformatTests.cpp702 GLfloat exp_p = deFloatMax(-B - 1, deFloatFloor(deFloatLog2(max_c))) + 1 + B; in convertUint_5_9_9_9_rev() local
704 GLfloat max_s = deFloatFloor(max_c / deFloatPow(2.0f, exp_p - (float)B - (float)N) + 0.5f); in convertUint_5_9_9_9_rev()
709 exp_s = exp_p; in convertUint_5_9_9_9_rev()
711 exp_s = exp_p + 1; in convertUint_5_9_9_9_rev()
DglcPackedPixelsTests.cpp1425 GLfloat exp_p = deFloatMax(-B - 1, deFloatFloor(deFloatLog2(max_c))) + 1 + B; in unpack_UNSIGNED_INT_5_9_9_9_REV() local
1427 GLfloat max_s = deFloatFloor(max_c / deFloatPow(2.0f, exp_p - (float)B - (float)N) + 0.5f); in unpack_UNSIGNED_INT_5_9_9_9_REV()
1432 exp_s = exp_p; in unpack_UNSIGNED_INT_5_9_9_9_REV()
1434 exp_s = exp_p + 1; in unpack_UNSIGNED_INT_5_9_9_9_REV()