projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33ef838
)
Endianess definitions for SH.
author
drepper
<drepper>
Mon, 12 Jun 2000 23:51:10 +0000
(23:51 +0000)
committer
drepper
<drepper>
Mon, 12 Jun 2000 23:51:10 +0000
(23:51 +0000)
sysdeps/sh/bits/endian.h
[new file with mode: 0644]
patch
|
blob
diff --git a/sysdeps/sh/bits/endian.h
b/sysdeps/sh/bits/endian.h
new file mode 100644
(file)
index 0000000..
1fef1ff
--- /dev/null
+++ b/
sysdeps/sh/bits/endian.h
@@ -0,0
+1,13
@@
+/* SH is bi-endian but with a big-endian FPU. */
+
+#ifndef _ENDIAN_H
+# error "Never use <bits/endian.h> directly; include <endian.h> instead."
+#endif
+
+#ifdef __LITTLE_ENDIAN__
+#define __BYTE_ORDER __LITTLE_ENDIAN
+#define __FLOAT_WORD_ORDER __LITTLE_ENDIAN
+#else
+#define __BYTE_ORDER __BIG_ENDIAN
+#define __FLOAT_WORD_ORDER __BIG_ENDIAN
+#endif