Lines Matching refs:value
94 UINT _gx_utility_math_sqrt(UINT value) in _gx_utility_math_sqrt() argument
98 if (value >= 0x7FFEA810) in _gx_utility_math_sqrt()
102 else if (value >= 0x1000000) in _gx_utility_math_sqrt()
104 if (value >= 0x40000000) in _gx_utility_math_sqrt()
106 square_root = (UINT)sqrt_table[value >> 24] << 8; in _gx_utility_math_sqrt()
108 else if (value >= 0x10000000) in _gx_utility_math_sqrt()
110 square_root = (UINT)sqrt_table[value >> 22] << 7; in _gx_utility_math_sqrt()
112 else if (value >= 0x4000000) in _gx_utility_math_sqrt()
114 square_root = (UINT)sqrt_table[value >> 20] << 6; in _gx_utility_math_sqrt()
118 square_root = (UINT)sqrt_table[value >> 18] << 5; in _gx_utility_math_sqrt()
121 square_root = (square_root + 1 + (value / square_root)) >> 1; in _gx_utility_math_sqrt()
122 square_root = (square_root + 1 + (value / square_root)) >> 1; in _gx_utility_math_sqrt()
124 else if (value >= 0x10000) in _gx_utility_math_sqrt()
126 if (value >= 0x400000) in _gx_utility_math_sqrt()
128 square_root = (UINT)sqrt_table[value >> 16] << 4; in _gx_utility_math_sqrt()
130 else if (value >= 0x100000) in _gx_utility_math_sqrt()
132 square_root = (UINT)sqrt_table[value >> 14] << 3; in _gx_utility_math_sqrt()
134 else if (value >= 0x40000) in _gx_utility_math_sqrt()
136 square_root = (UINT)sqrt_table[value >> 12] << 2; in _gx_utility_math_sqrt()
140 square_root = (UINT)sqrt_table[value >> 10] << 1; in _gx_utility_math_sqrt()
143 square_root = (square_root + 1 + (value / square_root)) >> 1; in _gx_utility_math_sqrt()
147 if (value >= 0x4000) in _gx_utility_math_sqrt()
149 square_root = (UINT)(sqrt_table[value >> 8]) + 1; in _gx_utility_math_sqrt()
151 else if (value >= 0x1000) in _gx_utility_math_sqrt()
153 square_root = (UINT)(sqrt_table[value >> 6] >> 1) + 1; in _gx_utility_math_sqrt()
155 else if (value >= 0x400) in _gx_utility_math_sqrt()
157 square_root = (UINT)(sqrt_table[value >> 4] >> 2) + 1; in _gx_utility_math_sqrt()
159 else if (value >= 0x100) in _gx_utility_math_sqrt()
161 square_root = (UINT)(sqrt_table[value >> 2] >> 3) + 1; in _gx_utility_math_sqrt()
165 square_root = sqrt_table[value] >> 4; in _gx_utility_math_sqrt()
169 if ((square_root * square_root) > value) in _gx_utility_math_sqrt()