[rtems-libbsd commit] Add _XXX_ENDIAN constants

Joel Sherrill joel at rtems.org
Wed Jul 11 22:34:32 UTC 2012


Module:    rtems-libbsd
Branch:    master
Commit:    479f4eb6d90ad261e4649b4e37e58d83f2510091
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=479f4eb6d90ad261e4649b4e37e58d83f2510091

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Wed Jul 11 17:33:09 2012 -0500

Add _XXX_ENDIAN constants

---

 rtemsbsd/freebsd/machine/endian.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/rtemsbsd/freebsd/machine/endian.h b/rtemsbsd/freebsd/machine/endian.h
index 3f197a4..358200c 100644
--- a/rtemsbsd/freebsd/machine/endian.h
+++ b/rtemsbsd/freebsd/machine/endian.h
@@ -52,6 +52,10 @@
 
 #include <rtems/endian.h>
 
+#define _LITTLE_ENDIAN  1234    /* LSB first: i386, vax */
+#define _BIG_ENDIAN     4321    /* MSB first: 68000, ibm, net */
+#define _PDP_ENDIAN     3412    /* LSB first in word, MSW first in long */
+
 #if CPU_BIG_ENDIAN
 # define _BYTE_ORDER _BIG_ENDIAN
 #elif CPU_LITTLE_ENDIAN




More information about the vc mailing list