Help with bit bashing code: differences between C and CL