What does following
size += (size & 0x0\1);
Non-portable, implementation dependent, non-standard conforming code.
It is anybody's guess what the original author has intended but "probably" means
size += size & 0x1. That is: increment size by 1 in case size is odd (that is, least significant bit is 1).