anasimtiaz
Junior Member level 1
Hi,
What is the best way to do the following?
Input : 0 0 0 1 0 0 0 1 0 0
Output: 0 0 0 1 1 1 1 1 0 0
i.e. set bits in a certain range?
I want to use this to form a mask to generate valid inputs in a certain range.
Any ideas?
What is the best way to do the following?
Input : 0 0 0 1 0 0 0 1 0 0
Output: 0 0 0 1 1 1 1 1 0 0
i.e. set bits in a certain range?
I want to use this to form a mask to generate valid inputs in a certain range.
Any ideas?