Lines Matching full:31
196 /* floor(9.80665 * 2^(31−4)) q31_t in (-2^4, 2^4) => range_g = shift of 4 */ in bma4xx_emul_set_accel_data()
276 *upper = (q31_t)(2 * 9.80665 * BIT(31 - 5)); in bma4xx_emul_backend_get_sample_range()
278 /* (1 << (31 - shift) >> 12) * 2 (where 2 comes from 2g range) */ in bma4xx_emul_backend_get_sample_range()
279 *epsilon = BIT(31 - 5 - 12 + 1); in bma4xx_emul_backend_get_sample_range()
283 *upper = (q31_t)(4 * 9.80665 * BIT(31 - 6)); in bma4xx_emul_backend_get_sample_range()
285 /* (1 << (31 - shift) >> 12) * 4 (where 4 comes from 4g range) */ in bma4xx_emul_backend_get_sample_range()
286 *epsilon = BIT(31 - 6 - 12 + 2); in bma4xx_emul_backend_get_sample_range()
290 *upper = (q31_t)(8 * 9.80665 * BIT(31 - 7)); in bma4xx_emul_backend_get_sample_range()
292 /* (1 << (31 - shift) >> 12) * 8 (where 8 comes from 8g range) */ in bma4xx_emul_backend_get_sample_range()
293 *epsilon = BIT(31 - 7 - 12 + 3); in bma4xx_emul_backend_get_sample_range()
297 *upper = (q31_t)(16 * 9.80665 * BIT(31 - 8)); in bma4xx_emul_backend_get_sample_range()
299 /* (1 << (31 - shift) >> 12) * 16 (where 16 comes from 16g range) */ in bma4xx_emul_backend_get_sample_range()
300 *epsilon = BIT(31 - 8 - 12 + 4); in bma4xx_emul_backend_get_sample_range()