Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by Thelonius (Priest)
on Mar 18, 2007 at 01:26 UTC ( #605328=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!perl -w
    use strict;
    ...
    
    my @out = intToB5($word);
    print "out = ", join(", ", @out), "\n";
    
  2. or download this
    word = 17314053 = 0x01083105 = 0b000001000010000011000100000101
    out = 1, 2, 3, 4, 5
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (13)
As of 2016-06-30 14:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (396 votes). Check out past polls.