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