Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 perusing the Monastery: (10)
As of 2016-09-29 14:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (554 votes). Check out past polls.