Lines Matching +full:abs +full:- +full:range
1 /* SPDX-License-Identifier: GPL-2.0 */
14 #define __round_mask(x, y) ((__typeof__(x))((y)-1))
17 * round_up - round up to next specified power of 2
24 #define round_up(x, y) ((((x)-1) | __round_mask(x, y))+1)
27 * round_down - round down to next specified power of 2
42 DIV_ROUND_DOWN_ULL((unsigned long long)(ll) + (d) - 1, (d))
51 * roundup - round up to the next specified multiple
61 (((x) + (__y - 1)) / __y) * __y; \
65 * rounddown - round down to next specified multiple
75 __x - (__x % (y)); \
89 (((typeof(x))-1) > 0 || \
90 ((typeof(divisor))-1) > 0 || \
93 (((__x) - ((__d) / 2)) / (__d)); \
97 * Same as above but for u64 dividends. divisor must be a 32-bit
124 * abs - return absolute value of an argument
131 #define abs(x) __abs_choose_expr(x, long long, \ macro
138 (char)({ signed char __x = (x); __x<0?-__x:__x; }), \
144 ({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)
147 * reciprocal_scale - "scale" a value into range [0, ep_ro)
152 * range [0, @ep_ro), where the upper interval endpoint is right-open.