mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 13:50:15 +01:00
tools: disable clang-tidy warning about using floats for loop counters
Really doesn't matter here. Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1175>
This commit is contained in:
parent
6770131e94
commit
e316e7c4b0
1 changed files with 2 additions and 2 deletions
|
|
@ -51,7 +51,7 @@ print_ptraccel_deltas(struct motion_filter *filter, double step)
|
||||||
printf("#\n");
|
printf("#\n");
|
||||||
|
|
||||||
/* Accel flattens out after 15 and becomes linear */
|
/* Accel flattens out after 15 and becomes linear */
|
||||||
for (i = 0.0; i < 15.0; i += step) {
|
for (i = 0.0; i < 15.0; i += step) { // NOLINT: security.FloatLoopCounter
|
||||||
motion.x = i;
|
motion.x = i;
|
||||||
motion.y = 0;
|
motion.y = 0;
|
||||||
time += us(12500); /* pretend 80Hz data */
|
time += us(12500); /* pretend 80Hz data */
|
||||||
|
|
@ -162,7 +162,7 @@ print_accel_func(struct motion_filter *filter,
|
||||||
printf("# plot \"gnuplot.data\" using 1:2 title 'accel factor'\n");
|
printf("# plot \"gnuplot.data\" using 1:2 title 'accel factor'\n");
|
||||||
printf("#\n");
|
printf("#\n");
|
||||||
printf("# data: velocity(mm/s) factor velocity(units/us) velocity(units/ms)\n");
|
printf("# data: velocity(mm/s) factor velocity(units/us) velocity(units/ms)\n");
|
||||||
for (mmps = 0.0; mmps < 1000.0; mmps += 1) {
|
for (mmps = 0.0; mmps < 1000.0; mmps += 1) { // NOLINT: security.FloatLoopCounter
|
||||||
double units_per_us = mmps_to_upus(mmps, dpi);
|
double units_per_us = mmps_to_upus(mmps, dpi);
|
||||||
double units_per_ms = units_per_us * 1000.0;
|
double units_per_ms = units_per_us * 1000.0;
|
||||||
double result = profile(filter, NULL, units_per_us, 0 /* time */);
|
double result = profile(filter, NULL, units_per_us, 0 /* time */);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue