aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorlloyd <[email protected]>2007-05-17 00:37:21 +0000
committerlloyd <[email protected]>2007-05-17 00:37:21 +0000
commite0bea59d5e321c335f1a66aa430aca80be8a69bd (patch)
treec129d38b89cb2b79bd45e5350e6aae0014f46076 /misc
parent925a58bba71b94782fa08025ac1eac8af0e95bb5 (diff)
Add a new preprocessor macro defining the endian-ness of the target CPU.
Currently it is only set for x86 and x86-64 as they are two of the few architectures which are not bi-endian, and we're not doing any detection (nor is there any way for a user to override the selection yet).
Diffstat (limited to 'misc')
-rw-r--r--misc/config/arch/amd642
-rw-r--r--misc/config/arch/ia322
2 files changed, 4 insertions, 0 deletions
diff --git a/misc/config/arch/amd64 b/misc/config/arch/amd64
index 8a321ce11..cafe1bb32 100644
--- a/misc/config/arch/amd64
+++ b/misc/config/arch/amd64
@@ -2,6 +2,8 @@ realname "AMD64"
default_submodel amd64
+endian little
+
<aliases>
x86-64
x86_64 # for RPM
diff --git a/misc/config/arch/ia32 b/misc/config/arch/ia32
index 9747070a8..1eec8cdbe 100644
--- a/misc/config/arch/ia32
+++ b/misc/config/arch/ia32
@@ -2,6 +2,8 @@ realname "IA-32"
default_submodel i586
+endian little
+
<aliases>
x86
ix86