Answer the question
In order to leave comments, you need to log in
How to set values for a range of bits in a variable?
Hello!
It is required to make the bit values equal to 1 in a certain range in a 64-bit unsigned long, leaving the remaining bits unchanged. For example, 0x000100100fe80010 should become 0xffffffffffffff , i.e. the range of fe in the number remains unchanged. Tell me how to do it?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question