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

Re: Ascending vs descending bit order

by smitz (Chaplain)
on Jul 01, 2002 at 15:24 UTC ( [id://178583]=note: print w/replies, xml ) Need Help??


in reply to Ascending vs descending bit order

See:
Big Endian and Little Endian for the difference.
Why one is used over another is mostly (/me thinks ?) down to the system.

SMiTZ

Replies are listed 'Best First'.
Re^2: Ascending vs descending bit order
by Aristotle (Chancellor) on Jul 01, 2002 at 15:41 UTC
    Careful, nothing to do with big vs little endian which are byte order variations, as opposed to the pack formats which differ in the bit order. Observe:
    $ perl -le'print ord pack "B*", "00000001"' 1 $ perl -le'print ord pack "b*", "00000001"' 128

    Makeshifts last the longest.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-25 22:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found