6 ms·
#define CLEARBIT(a,p) = ((a) &= ~((typeof(a))1 << (p)))
by FrozenVoid 4y ago
#define CLEARBIT(a,p) = ((a) &= ~((typeof(a))1 << (p)))
- raxxorraxor 4y agoThat is clearly better provided the compiler supports it. Less portable but it should really be a part of ISO C in my opinion.