Lines Matching +full:2 +full:- +full:dimensional
1 /* SPDX-License-Identifier: GPL-2.0 OR MIT */
12 * #define type_min(T) (T)(is_signed_type(T) ? (T)1 << (8*sizeof(T)-1) : 0)
13 * #define type_max(T) (T)(is_signed_type(T) ? ((T)1 << (8*sizeof(T)-1)) - 1 : ~(T)0)
17 * the type_max expression (but not if -fsanitize=undefined is in
23 * a-feature-not-a-bug, since people shouldn't be doing arithmetic on
28 * https://mail-index.netbsd.org/tech-misc/2007/02/05/0000.html -
31 #define is_signed_type(type) (((type)(-1)) < (type)1)
32 #define __type_half_max(type) ((type)1 << (8*sizeof(type) - 1 - is_signed_type(type)))
33 #define type_max(T) ((T)((__type_half_max(T) - 1) + __type_half_max(T)))
34 #define type_min(T) ((T)((T)-type_max(T)-(T)1))
39 * macros), whereas gcc's type-generic overflow checkers accept
72 * array_size() - Calculate size of 2-dimensional array.
77 * Calculates size of 2-dimensional array: @a * @b.
93 * array3_size() - Calculate size of 3-dimensional array.
99 * Calculates size of 3-dimensional array: @a * @b * @c.
129 * struct_size() - Calculate size of structure with trailing array.
141 sizeof(*(p)->member) + __must_be_array((p)->member),\