Hacker News new | ask | show | jobs
by FrozenVoid 1506 days ago

  #define CLEARBIT(a,p) = ((a) &= ~((typeof(a))1 << (p)))
1 comments

That is clearly better provided the compiler supports it. Less portable but it should really be a part of ISO C in my opinion.