Home
last modified time | relevance | path

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

/external/swiftshader/tests/MathUnitTests/
Dunittests.cpp54 constexpr int g_sharedexp_bias = 15; in RGB9E5_reference() local
65 static_cast<float>(1 << (g_sharedexp_maxexponent - g_sharedexp_bias)); in RGB9E5_reference()
72 const float exp_p = fmax(-g_sharedexp_bias - 1, floor(log2(max_c))) + 1 + g_sharedexp_bias; in RGB9E5_reference()
73 …const int max_s = static_cast<int>(floor((max_c / exp2(exp_p - g_sharedexp_bias - g_sharedexp_mant… 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()
77 …unsigned int G = static_cast<unsigned int>(floor((green_c / exp2(exp_s - g_sharedexp_bias - g_shar… in RGB9E5_reference()
78 …unsigned int B = static_cast<unsigned int>(floor((blue_c / exp2(exp_s - g_sharedexp_bias - g_share… in RGB9E5_reference()
/external/angle/src/common/
Dmathutil.cpp29 constexpr int g_sharedexp_bias = 15; variable
35 constexpr int g_sharedexp_biased_mantissabits = g_sharedexp_bias + g_sharedexp_mantissabits;
43 static_cast<float>(1 << (g_sharedexp_maxexponent - g_sharedexp_bias));
55 std::max<float>(-g_sharedexp_bias - 1, floor(log(max_c))) + 1 + g_sharedexp_bias; in convertRGBFloatsTo999E5()
/external/swiftshader/src/System/
DHalf.hpp71 constexpr int g_sharedexp_bias = 15; in RGB9E5() local
82 static_cast<float>(1 << (g_sharedexp_maxexponent - g_sharedexp_bias)); in RGB9E5()
99 constexpr float min_s = 0.5f / (1 << g_sharedexp_bias); in RGB9E5()