Searched refs:res (Results 1 – 2 of 2) sorted by relevance
202 uint32_t res = 0; in VL53L1_isqrt() local211 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()
131 uint32_t res = 0; in VL53L0X_isqrt() local142 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() local170 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()