From b80ea4f58e84e639bf3aa56958a521e0e9b2efa3 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Wed, 15 Jun 2022 22:31:08 -0400 Subject: [PATCH] Switch to little endian --- include/cyclone/types.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/cyclone/types.h b/include/cyclone/types.h index 27de214b..73d81d80 100644 --- a/include/cyclone/types.h +++ b/include/cyclone/types.h @@ -906,9 +906,9 @@ typedef struct { * machines, we must swap the odd and even positions. */ //#ifdef C_BIG_ENDIAN -#define C_uhword_ref(x, p) ((uint16_t *)(x))[(p)^1] +//#define C_uhword_ref(x, p) ((uint16_t *)(x))[(p)^1] //#else -//#define C_uhword_ref(x, p) ((C_uhword *)(x))[(p)] +#define C_uhword_ref(x, p) ((uint16_t *)(x))[(p)] //#endif #define C_uhword_set(x, p, d) (C_uhword_ref(x,p) = (d))