Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: 5x6-bit values into/out of a 32-bit word

by ikegami (Pope)
on Mar 18, 2007 at 01:30 UTC ( #605329=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    0055 5555 4444 4433 3333 2222 2211 1111
    
  2. or download this
    # Get individual num:
    $num = ($aggregate >> ($i*6)) & 0b111111;
    
    # Set individual num:
    $aggregate = ($aggregate & ~(0x3F << ($i*6))) | ($num << ($i*6));
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://605329]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2014-07-25 21:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls