Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

#Actualformalproof

Posted 10 July 2012 - 05:08 PM

The technical term for this is "endianness".


Ok, seems I made an embarassing mistake in understanding what little endian means Posted Image

So in a little endian system, val = 0xAABBCCDD is stored in memory as:
0 1 2   4
DD CC BB AA

That would explain why vec[0] == 0xDD, etc. Thanks!

#1formalproof

Posted 10 July 2012 - 05:08 PM

The technical term for this is "endianness".


Ok, seems I made an embarassing mistake in understanding what little endian means :)

S in a little endian system, val = 0xAABBCCDD is stored in memory as:
0    1     2   4
DD CC BB AA

That would explain why vec[0] == 0xDD, etc. Thanks!

PARTNERS