Codechange: Expand the single usage of the macro CLRBITS.
This commit is contained in:
@@ -141,18 +141,6 @@ constexpr T ClrBit(T &x, const uint8_t y)
|
||||
return x = (T)(x & ~((T)1U << y));
|
||||
}
|
||||
|
||||
/**
|
||||
* Clears several bits in a variable.
|
||||
*
|
||||
* This macro clears several bits in a variable. The bits to clear are
|
||||
* provided by a value. The new value is also returned.
|
||||
*
|
||||
* @param x The variable to clear some bits
|
||||
* @param y The value with set bits for clearing them in the variable
|
||||
* @return The new value of x
|
||||
*/
|
||||
#define CLRBITS(x, y) ((x) &= ~(y))
|
||||
|
||||
/**
|
||||
* Toggles a bit in a variable.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user