Closed Lastique closed 5 years ago
Use memcpy to convert between long and the bitfield structure and use memcmp to compare the two bitfields. Compilers should be smart enough to optimize away these string operations and generate virtually the same code as before.
memcpy
memcmp
Thaks for the PR.
Use
memcpy
to convert between long and the bitfield structure and usememcmp
to compare the two bitfields. Compilers should be smart enough to optimize away these string operations and generate virtually the same code as before.