Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Endian-ness in Script
#1
Is there a way of detecting the PMAC card endian-ness in script code?
Reply
#2
You typically do not need to know this in script as PPMAC firmware manages this for you.
Having said that, the pre-processor used with the IDE provides the following macros:
ARM:
#define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__
Everything else (and PPC):
#define __BYTE_ORDER__ __ORDER_BIG_ENDIAN__
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)