zephyr/tests/kernel/timer/timer_api/src
Keith Packard 5d6b43f684 tests/timer_api: Use correct 'abs' macro with correct type parameter
Subtracting with a uint64_t operand yields a uint64_t result, for which
the absolute value is not terribly interesting. Cast the operand to
int64_t.

Use llabs instead of abs as abs takes an int parameter and not an
int64_t. This appears to work even with the minimal C library.

Signed-off-by: Keith Packard <keithp@keithp.com>
2022-06-14 01:50:36 +09:00
..
main.c tests/timer_api: Use correct 'abs' macro with correct type parameter 2022-06-14 01:50:36 +09:00
timer_convert.c tests: migrate includes to <zephyr/...> 2022-05-06 20:02:14 +02:00