Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
FrozenVoid
· 4y ago · 0 comments
#define CLEARBIT(a,p) = ((a) &= ~((typeof(a))1 << (p)))
Comments
[–]
raxxorraxor
4y ago
That is clearly better provided the compiler supports it. Less portable but it should really be a part of ISO C in my opinion.