summaryrefslogtreecommitdiff
path: root/src/cortexelf-v1
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-11-18 20:38:15 -0800
committerKeith Packard <keithp@keithp.com>2017-11-18 20:49:52 -0800
commit5f8f0ed5cd5d4b4f793c602ed09f9b4bdb98f7e8 (patch)
treede2468ca80a3411735517ee39155d1cf30055ceb /src/cortexelf-v1
parente745229311366a792110d78d8480a2bf83eef9a0 (diff)
altos/lisp: Add 'big' ints -- 24 bits wide
With the default ints being only 14 bits, having a larger type with more precision seems useful. This is not exposed to the application. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/cortexelf-v1')
-rw-r--r--src/cortexelf-v1/ao_lisp_os.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cortexelf-v1/ao_lisp_os.h b/src/cortexelf-v1/ao_lisp_os.h
index 50c9d40f..27ea7806 100644
--- a/src/cortexelf-v1/ao_lisp_os.h
+++ b/src/cortexelf-v1/ao_lisp_os.h
@@ -23,6 +23,12 @@
#define AO_LISP_POOL_TOTAL 16384
#define AO_LISP_SAVE 1
+#ifndef __BYTE_ORDER
+#define __LITTLE_ENDIAN 1234
+#define __BIG_ENDIAN 4321
+#define __BYTE_ORDER __LITTLE_ENDIAN
+#endif
+
static inline int
ao_lisp_getc() {
static uint8_t at_eol;