Advertisement

Byte-order, alignment, LSB, etc.

Started by April 05, 2000 12:16 PM
10 comments, last by null_pointer 24 years, 8 months ago
While we''re on this subject, if you''re using little endian, (Intell chips) and you do a binary shift, wouldn''t that mess up the number? (if it''s over 1 byte) I sometimes do this to quickly multiply/divide a number by 2. (I''m on a Mac and it uses big-endian)

E:cb woof!
E:cb woof!
Bit shifts on little endian machines work just fine.

This topic is closed to new replies.

Advertisement