Searched refs:g_sharedexp_mantissabits (Results 1 - 1 of 1) sorted by relevance

/external/chromium_org/third_party/angle/src/common/
H A Dmathutil.cpp29 static const int g_sharedexp_mantissabits = 9; member in namespace:gl
34 static const float g_sharedexp_max = ((pow(2.0f, g_sharedexp_mantissabits) - 1) /
35 pow(2.0f, g_sharedexp_mantissabits)) *
46 const int max_s = floor((max_c / (pow(2.0f, exp_p - g_sharedexp_bias - g_sharedexp_mantissabits))) + 0.5f);
47 const int exp_s = (max_s < pow(2.0f, g_sharedexp_mantissabits)) ? exp_p : exp_p + 1;
50 output.R = floor((red_c / (pow(2.0f, exp_s - g_sharedexp_bias - g_sharedexp_mantissabits))) + 0.5f);
51 output.G = floor((green_c / (pow(2.0f, exp_s - g_sharedexp_bias - g_sharedexp_mantissabits))) + 0.5f);
52 output.B = floor((blue_c / (pow(2.0f, exp_s - g_sharedexp_bias - g_sharedexp_mantissabits))) + 0.5f);
62 *red = inputData->R * pow(2.0f, (int)inputData->E - g_sharedexp_bias - g_sharedexp_mantissabits);
63 *green = inputData->G * pow(2.0f, (int)inputData->E - g_sharedexp_bias - g_sharedexp_mantissabits);
[all...]

Completed in 224 milliseconds