diff options
author | Aurelien Jarno <[email protected]> | 2024-01-13 19:33:31 +0100 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2024-01-20 13:30:00 -0800 |
commit | 31e97d7c9ae3de072d7b424b2cf706a03ec10720 (patch) | |
tree | d5636447c9a5014aa9388931c3cbe92376e04589 /lib/netdev-notifier-error-inject.c | |
parent | 978ffcbf00d82b03b79e64b5c8249589b50e7463 (diff) |
media: solo6x10: replace max(a, min(b, c)) by clamp(b, a, c)
This patch replaces max(a, min(b, c)) by clamp(b, a, c) in the solo6x10
driver. This improves the readability and more importantly, for the
solo6x10-p2m.c file, this reduces on my system (x86-64, gcc 13):
- the preprocessed size from 121 MiB to 4.5 MiB;
- the build CPU time from 46.8 s to 1.6 s;
- the build memory from 2786 MiB to 98MiB.
In fine, this allows this relatively simple C file to be built on a
32-bit system.
Reported-by: Jiri Slaby <[email protected]>
Closes: https://lore.kernel.org/lkml/[email protected]/
Cc: <[email protected]> # v6.7+
Suggested-by: David Laight <[email protected]>
Signed-off-by: Aurelien Jarno <[email protected]>
Reviewed-by: David Laight <[email protected]>
Reviewed-by: Hans Verkuil <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions