• Home
  • Raw
  • Download

Lines Matching refs:a

49 #define check_add_overflow(a, b, d) ({		\  argument
50 typeof(a) __a = (a); \
58 #define check_sub_overflow(a, b, d) ({ \ argument
59 typeof(a) __a = (a); \
67 #define check_mul_overflow(a, b, d) ({ \ argument
68 typeof(a) __a = (a); \
80 #define __unsigned_add_overflow(a, b, d) ({ \ argument
81 typeof(a) __a = (a); \
89 #define __unsigned_sub_overflow(a, b, d) ({ \ argument
90 typeof(a) __a = (a); \
101 #define __unsigned_mul_overflow(a, b, d) ({ \ argument
102 typeof(a) __a = (a); \
129 #define __signed_add_overflow(a, b, d) ({ \ argument
130 typeof(a) __a = (a); \
145 #define __signed_sub_overflow(a, b, d) ({ \ argument
146 typeof(a) __a = (a); \
172 #define __signed_mul_overflow(a, b, d) ({ \ argument
173 typeof(a) __a = (a); \
176 typeof(a) __tmax = type_max(typeof(a)); \
177 typeof(a) __tmin = type_min(typeof(a)); \
187 #define check_add_overflow(a, b, d) \ argument
188 __builtin_choose_expr(is_signed_type(typeof(a)), \
189 __signed_add_overflow(a, b, d), \
190 __unsigned_add_overflow(a, b, d))
192 #define check_sub_overflow(a, b, d) \ argument
193 __builtin_choose_expr(is_signed_type(typeof(a)), \
194 __signed_sub_overflow(a, b, d), \
195 __unsigned_sub_overflow(a, b, d))
197 #define check_mul_overflow(a, b, d) \ argument
198 __builtin_choose_expr(is_signed_type(typeof(a)), \
199 __signed_mul_overflow(a, b, d), \
200 __unsigned_mul_overflow(a, b, d))
216 static inline __must_check size_t array_size(size_t a, size_t b) in array_size() argument
220 if (check_mul_overflow(a, b, &bytes)) in array_size()
238 static inline __must_check size_t array3_size(size_t a, size_t b, size_t c) in array3_size() argument
242 if (check_mul_overflow(a, b, &bytes)) in array3_size()