Two questions:
If you are only going to set the bit if it is unset, then just setting it achieves the same thing.
I guess the compiler might inline the function and optimise away the overheads, but still I don't see why it would end up being any quicker. As quick possibly.
In reply to Re^8: Bit vector fiddling with Inline C
by BrowserUk
in thread Bit vector fiddling with Inline C
by oxone
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |