Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
FrozenVoid
4y ago
0 comments
Save
Share
#define CLEARBIT(a,p) = ((a) &= ~((typeof(a))1 << (p)))
0 comments
1 comments · 1 top-level
top
newest
oldest
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.
j
/
k
navigate · click thread line to collapse