mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-20 18:40:05 +01:00
std-aux: remove NM_CONST_MAX()
We now can use either NM_MAX() or NM_MAX_CONST() instead. Drop this.
This commit is contained in:
parent
ca4401e327
commit
559d071f8d
1 changed files with 0 additions and 7 deletions
|
|
@ -459,13 +459,6 @@ nm_mult_clamped_u(unsigned a, unsigned b)
|
|||
(((cmp(_a, _b)) >= 0) ? _a : _b); \
|
||||
})
|
||||
|
||||
/* evaluates to (void) if _A or _B are not constant or of different types */
|
||||
#define NM_CONST_MAX(_A, _B) \
|
||||
(__builtin_choose_expr((__builtin_constant_p(_A) && __builtin_constant_p(_B) \
|
||||
&& __builtin_types_compatible_p(typeof(_A), typeof(_B))), \
|
||||
((_A) > (_B)) ? (_A) : (_B), \
|
||||
((void) 0)))
|
||||
|
||||
/* Determine whether @x is a power of two (@x being an integer type).
|
||||
* Basically, this returns TRUE, if @x has exactly one bit set.
|
||||
* For negative values and zero, this always returns FALSE. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue