summaryrefslogtreecommitdiff
path: root/include/linux/minmax.h
AgeCommit message (Expand)AuthorFilesLines
2024-07-27minmax: relax check to allow comparison between unsigned arguments and signed...David Laight1-7/+17
2024-07-27minmax: allow comparisons of 'int' against 'unsigned char/short'David Laight1-2/+3
2024-07-27minmax: allow min()/max()/clamp() if the arguments have the same signedness.David Laight1-28/+32
2024-07-27minmax: fix header inclusionsAndy Shevchenko1-0/+2
2024-07-27minmax: clamp more efficiently by avoiding extra comparisonJason A. Donenfeld1-1/+1
2024-07-27minmax: sanity check constant bounds when clampingJason A. Donenfeld1-2/+24
2024-04-10minmax: add umin(a, b) and umax(a, b)David Laight1-0/+17
2021-05-23linux/bits.h: fix compilation error with GENMASKRikard Falkeborn1-8/+2
2020-10-16kernel.h: split out min()/max() et al. helpersAndy Shevchenko1-0/+153