@lore Zallen {0,1}.
Seemingly the negation of X and 1. Negation of X being the bit flip of the binary number. So it's going to be swapping to truth value and adding a 1 to it. It could return the same value or probably cause a compiler error. The bool is not bitwise but the operation occurs outside the bool.

It's not comfortable code to look at.

@AmpBenzScientist it's not really adding a 1 because that's an AND, not an OR. and in C/C++, bool is just an integer type. it's considered true if nonzero.

@AmpBenzScientist in Java/C# it would probably cause a syntax error, but you typically don't see much bitmasking code of this sort in those languages. i could have mentioned that this is C99 code (earlier revisions lack a "bool" type) i guess.

Follow

@lore Embarrassingly enough I seem to have mostly used something closer to ANSI C or C89. I do recall conditionals being used extensively. Well I guess I'll have to check out Fatboy Slim You've come a long way, Baby.
*/
There's also this dead give away from my code.
/*

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.