Lines Matching refs:b
55 #define check_add_overflow(a, b, d) ({ \ argument
57 typeof(b) __b = (b); \
64 #define check_sub_overflow(a, b, d) ({ \ argument
66 typeof(b) __b = (b); \
73 #define check_mul_overflow(a, b, d) ({ \ argument
75 typeof(b) __b = (b); \
86 #define __unsigned_add_overflow(a, b, d) ({ \ argument
88 typeof(b) __b = (b); \
95 #define __unsigned_sub_overflow(a, b, d) ({ \ argument
97 typeof(b) __b = (b); \
107 #define __unsigned_mul_overflow(a, b, d) ({ \ argument
109 typeof(b) __b = (b); \
135 #define __signed_add_overflow(a, b, d) ({ \ argument
137 typeof(b) __b = (b); \
151 #define __signed_sub_overflow(a, b, d) ({ \ argument
153 typeof(b) __b = (b); \
178 #define __signed_mul_overflow(a, b, d) ({ \ argument
180 typeof(b) __b = (b); \
193 #define check_add_overflow(a, b, d) \ argument
195 __signed_add_overflow(a, b, d), \
196 __unsigned_add_overflow(a, b, d))
198 #define check_sub_overflow(a, b, d) \ argument
200 __signed_sub_overflow(a, b, d), \
201 __unsigned_sub_overflow(a, b, d))
203 #define check_mul_overflow(a, b, d) \ argument
205 __signed_mul_overflow(a, b, d), \
206 __unsigned_mul_overflow(a, b, d))
253 static inline __must_check size_t array_size(size_t a, size_t b) in array_size() argument
257 if (check_mul_overflow(a, b, &bytes)) in array_size()
275 static inline __must_check size_t array3_size(size_t a, size_t b, size_t c) in array3_size() argument
279 if (check_mul_overflow(a, b, &bytes)) in array3_size()
291 static inline __must_check size_t __ab_c_size(size_t a, size_t b, size_t c) in __ab_c_size() argument
295 if (check_mul_overflow(a, b, &bytes)) in __ab_c_size()