Strange backslash operator in assignment C

What does the following 0x0\1 mean in the following code? I find this in the inline C code:

 uint16 size; ... size += (size & 0x0\1); 

This is part of the Texas Instruments code released. It compiles to the IAR ARM IDE.

+6
source share
1 answer

Non-portable, implementation-specific, non-standard corresponding code. Does anyone guess what the original author intended, but “maybe” means size += size & 0x1 . That is: the increment size is 1, if the size is odd (that is, the least significant bit is 1).

+4
source

Source: https://habr.com/ru/post/1011701/


All Articles