User Profile
Collapse
-
Thank you very much my friend, i got the required answer, thanks a lot... -
y= ((x >> 4)& 0x0f) | ((x << 4) & 0xf0);
???? can you explain me please abt the above code, thanks in advance...Leave a comment:
-
i think i need to give still a better explanation, my bit position is like this 0000 0111 , now i need to get an integer which is less than 8 and if it is 5 it shud be like this 0101 0111. my 0111 should not be disturbed.Leave a comment:
-
How to set bits 4-7 without changing bits 0-3
Hi all,
I am gettting an unsigned integer from a table and i have to set that integer to a byte from the bits 4-7 since the bits 0-3 is already occupied, i dont want to disturb the bits 0-3 . the integer value is always less than 8. Can any1 help me out by simple example -
hi thank you for your suggestion, its working fine, i just modified
thank you all for your help...Leave a comment:
-
Thanks Rajesh, i need to increment the bits whenever i find an entry in a list, the setting of bits is fine, how to increment???...Leave a comment:
-
hi,
sorry for my delay reply, thanks for your reply, but i need to increment the bits 0-4 without disturbing other 3 bits in a byte whenever i find an entry in a listLeave a comment:
-
How to SetBits 0-4 in a byte using C language
Hi all,
i am new to this forum, but i need a help, i need to increment BIT values of 0-4 without disturbing other bits in a byte, Because others bits 5,6,7 is already set, so i just need to increment the remaining bits whenever and entry is found. for ex when i find a entry, it must increment the bit values from 0-4 without disturbing the rest of the bits. can anybody help me out
No activity results to display
Show More
Leave a comment: