diff options
| author | 2025-12-20 14:55:50 +0100 | |
|---|---|---|
| committer | 2026-01-04 10:29:01 +0100 | |
| commit | 7efd15d22a9b7e62d0659471bde25c35ef50c9e5 (patch) | |
| tree | 6106bc2d5ddfd9b1707e228899501e7af75c0ea2 /scripts/Makefile.thinlto | |
| parent | tools/nolibc: prefer explicit 64-bit time-related system calls (diff) | |
tools/nolibc/gettimeofday: avoid libgcc 64-bit divisions
timespec::tv_nsec is going to be 64-bit wide even on 32-bit
architectures. As not all architectures support 64-bit division
instructions, calls to libgcc (__divdi3()) may be emitted by the
compiler which are not provided by nolibc.
As tv_nsec is guaranteed to always fit into an uint32_t, perform a
32-bit division instead.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://patch.msgid.link/20251220-nolibc-uapi-types-v3-6-c662992f75d7@weissschuh.net
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
