Home
last modified time | relevance | path

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

/external/chromium_org/third_party/angle/src/common/
Dmathutil.cpp26 static const int g_sharedexp_bias = 15; variable
36 pow(2.0f, g_sharedexp_maxexponent - g_sharedexp_bias);
45 …const float exp_p = std::max<float>(-g_sharedexp_bias - 1, floor(log(max_c))) + 1 + g_sharedexp_bi… in convertRGBFloatsTo999E5()
46 …const int max_s = floor((max_c / (pow(2.0f, exp_p - g_sharedexp_bias - g_sharedexp_mantissabits)))… in convertRGBFloatsTo999E5()
50 …output.R = floor((red_c / (pow(2.0f, exp_s - g_sharedexp_bias - g_sharedexp_mantissabits))) + 0.5f… in convertRGBFloatsTo999E5()
51 …output.G = floor((green_c / (pow(2.0f, exp_s - g_sharedexp_bias - g_sharedexp_mantissabits))) + 0.… in convertRGBFloatsTo999E5()
52 …output.B = floor((blue_c / (pow(2.0f, exp_s - g_sharedexp_bias - g_sharedexp_mantissabits))) + 0.5… in convertRGBFloatsTo999E5()
62 … *red = inputData->R * pow(2.0f, (int)inputData->E - g_sharedexp_bias - g_sharedexp_mantissabits); in convert999E5toRGBFloats()
63 …*green = inputData->G * pow(2.0f, (int)inputData->E - g_sharedexp_bias - g_sharedexp_mantissabits); in convert999E5toRGBFloats()
64 … *blue = inputData->B * pow(2.0f, (int)inputData->E - g_sharedexp_bias - g_sharedexp_mantissabits); in convert999E5toRGBFloats()