Lines Matching +full:non +full:- +full:negative

1 /* SPDX-License-Identifier: GPL-2.0 */
13 * - Avoid multiple evaluations of the arguments (so side-effects like
14 * "x++" happen only once) when non-constant.
15 * - Perform signed v unsigned type-checking (to generate compile
17 * - Unsigned char/short are always promoted to signed int and can be
19 * - Unsigned arguments can be compared against non-negative signed constants.
20 * - Comparison of a signed argument against an unsigned constant fails
31 * In particular, statically non-negative signed integer expressions
53 * Check whether a signed value is always non-negative.
58 * On 64-bit any integer or pointer type can safely be cast to 'long long'.
59 * But on 32-bit we need to avoid warnings about casting pointers to integers
60 * of different sizes without truncating 64-bit values so 'long' or 'long long'
63 * This does not work for 128-bit signed integers since the cast would truncate
101 * min - return minimum of two values of the same or compatible types
108 * max - return maximum of two values of the same or compatible types
115 * umin - return minimum of two non-negative values
124 * umax - return maximum of two non-negative values
138 * min3 - return minimum of three values
147 * max3 - return maximum of three values
156 * min_t - return minimum of two values, using the specified type
164 * max_t - return maximum of two values, using the specified type
172 * min_not_zero - return the minimum that is _not_ zero, unless both are zero
198 * clamp - return a value clamped to a given range with typechecking
209 * clamp_t - return a value clamped to a given range using a given type
221 * clamp_val - return a value clamped to a given range using val's type
235 * In the following legit use-case where the "array" passed is a simple pointer,
237 * --- 8< ---
241 * --- 8< ---
253 __unqual_scalar_typeof(__array[0]) __element = __array[--__len];\
254 while (__len--) \
259 * min_array - return minimum of values present in an array
268 * max_array - return maximum of values present in an array
278 return (val - start) < len; in in_range64()
283 return (val - start) < len; in in_range32()
287 * in_range - Determine if a value lies within a range.
303 * swap - swap values of @a and @b