Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by Thelonius (Priest)
on Mar 18, 2007 at 01:26 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://605328]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-03-29 13:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found