Lines Matching +full:y +full:- +full:min
1 /* SPDX-License-Identifier: GPL-2.0 */
21 #define PERF_ALIGN(x, a) __PERF_ALIGN_MASK(x, (typeof(x))(a)-1)
25 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
30 * container_of - cast a member of a structure out to the containing structure
37 const typeof(((type *)0)->member) * __mptr = (ptr); \
38 (type *)((char *)__mptr - offsetof(type, member)); })
42 #define max(x, y) ({ \ argument
44 typeof(y) _max2 = (y); \
49 #ifndef min
50 #define min(x, y) ({ \ macro
52 typeof(y) _min2 = (y); \
57 #define max_t(type, x, y) max((type)x, (type)y) argument
58 #define min_t(type, x, y) min((type)x, (type)y) argument
59 #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi)