Lines Matching +full:x +full:- +full:max
1 /* SPDX-License-Identifier: GPL-2.0 */
21 #define PERF_ALIGN(x, a) __PERF_ALIGN_MASK(x, (typeof(x))(a)-1) argument
22 #define __PERF_ALIGN_MASK(x, mask) (((x)+(mask))&~(mask)) argument
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)); })
41 #ifndef max
42 #define max(x, y) ({ \ macro
43 typeof(x) _max1 = (x); \
50 #define min(x, y) ({ \ argument
51 typeof(x) _min1 = (x); \
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)