mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 09:21:26 +03:00
d94a24ca2e
This way we don't need to repeat the argument twice. I didn't replace all instances. I think it's better to leave out: - asserts - comparisons like x & y == x, which are mathematically equivalent, but here we aren't checking if flags are set, but if the argument fits in the flags.
16 lines
180 B
Plaintext
16 lines
180 B
Plaintext
@@
|
|
expression x, y;
|
|
@@
|
|
- ((x) & (y)) == (y)
|
|
+ FLAGS_SET(x, y)
|
|
@@
|
|
expression x, y;
|
|
@@
|
|
- (x & (y)) == (y)
|
|
+ FLAGS_SET(x, y)
|
|
@@
|
|
expression x, y;
|
|
@@
|
|
- ((x) & y) == y
|
|
+ FLAGS_SET(x, y)
|