Home
last modified time | relevance | path

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

/hal_st-2.7.6/sensor/vl53l1x/api/core/src/
Dvl53l1_core_support.c202 uint32_t res = 0; in VL53L1_isqrt() local
211 if (num >= res + bit) { in VL53L1_isqrt()
212 num -= res + bit; in VL53L1_isqrt()
213 res = (res >> 1) + bit; in VL53L1_isqrt()
215 res >>= 1; in VL53L1_isqrt()
220 return res; in VL53L1_isqrt()
/hal_st-2.7.6/sensor/vl53l0x/api/core/src/
Dvl53l0x_api_core.c131 uint32_t res = 0; in VL53L0X_isqrt() local
142 if (num >= res + bit) { in VL53L0X_isqrt()
143 num -= res + bit; in VL53L0X_isqrt()
144 res = (res >> 1) + bit; in VL53L0X_isqrt()
146 res >>= 1; in VL53L0X_isqrt()
151 return res; in VL53L0X_isqrt()
167 uint32_t res = 0; in VL53L0X_quadrature_sum() local
170 res = 65535; in VL53L0X_quadrature_sum()
172 res = VL53L0X_isqrt(a * a + b * b); in VL53L0X_quadrature_sum()
174 return res; in VL53L0X_quadrature_sum()