summaryrefslogtreecommitdiff
path: root/include/linux/minmax.h
AgeCommit message (Expand)Author
2025-10-19minmax.h: remove some #defines that are only expanded onceDavid Laight
2025-10-19minmax.h: simplify the variants of clamp()David Laight
2025-10-19minmax.h: move all the clamp() definitions after the min/max() onesDavid Laight
2025-10-19minmax.h: use BUILD_BUG_ON_MSG() for the lo < hi test in clamp()David Laight
2025-10-19minmax.h: reduce the #define expansion of min(), max() and clamp()David Laight
2025-10-19minmax.h: update some commentsDavid Laight
2025-10-19minmax.h: add whitespace around operators and after commasDavid Laight
2025-10-19minmax: fix up min3() and max3() tooLinus Torvalds
2025-10-19minmax: improve macro expansion and type checkingLinus Torvalds
2025-10-19minmax: simplify min()/max()/clamp() implementationLinus Torvalds
2025-10-19minmax: make generic MIN() and MAX() macros available everywhereLinus Torvalds
2025-10-19minmax: simplify and clarify min_t()/max_t() implementationLinus Torvalds
2025-10-19minmax: avoid overly complicated constant expressions in VM codeLinus Torvalds
2025-10-19minmax: fix indentation of __cmp_once() and __clamp_once()David Laight
2025-10-19minmax: deduplicate __unconst_integer_typeof()Andy Shevchenko
2025-10-19minmax: Introduce {min,max}_array()Herve Codina
2025-10-19minmax: add in_range() macroMatthew Wilcox (Oracle)
2024-07-27minmax: relax check to allow comparison between unsigned arguments and signed...David Laight
2024-07-27minmax: allow comparisons of 'int' against 'unsigned char/short'David Laight
2024-07-27minmax: allow min()/max()/clamp() if the arguments have the same signedness.David Laight
2024-07-27minmax: fix header inclusionsAndy Shevchenko
2024-07-27minmax: clamp more efficiently by avoiding extra comparisonJason A. Donenfeld
2024-07-27minmax: sanity check constant bounds when clampingJason A. Donenfeld
2024-04-10minmax: add umin(a, b) and umax(a, b)David Laight
2021-05-22linux/bits.h: fix compilation error with GENMASKRikard Falkeborn
2020-10-16kernel.h: split out min()/max() et al. helpersAndy Shevchenko