We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 273d601 commit 1e75b82Copy full SHA for 1e75b82
drivers/sensor/st/lsm6dsv16x/lsm6dsv16x_decoder.c
@@ -66,7 +66,7 @@ static const uint32_t sflp_period_ns[] = {
66
* Expand val to q31_t according to its range; this is achieved multiplying by 2^31/2^range.
67
*/
68
#define Q31_SHIFT_VAL(val, range) \
69
- (q31_t) (round((val) * ((int64_t)1 << (31 - (range)))))
+ (q31_t) (roundf((val) * ((int64_t)1 << (31 - (range)))))
70
71
/*
72
* Expand micro_val (a generic micro unit) to q31_t according to its range; this is achieved
0 commit comments