Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Perl
Perl Misc
How do I parse certain "bits" out of bytes?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Joe Smith, post: 4789215"] If you have an 8-bit number and shift it right 3 bits, then you have a 5-bit quantity. If all you are interested in is those 5 bits, then fine. If you have a 32-bit number and shift it right 3 bits, then you have a 29-bit quantity. If all you are interested in is 5 bits, then you will have to perform an extra step to ensure that you are getting only 5 bits. That's where the 'AND' operation comes in. -Joe [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Perl
Perl Misc
How do I parse certain "bits" out of bytes?
Top