Switch to little endian

This commit is contained in:
Justin Ethier 2022-06-15 22:31:08 -04:00
parent 5826b53607
commit b80ea4f58e

View file

@ -906,9 +906,9 @@ typedef struct {
* machines, we must swap the odd and even positions. * machines, we must swap the odd and even positions.
*/ */
//#ifdef C_BIG_ENDIAN //#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 //#else
//#define C_uhword_ref(x, p) ((C_uhword *)(x))[(p)] #define C_uhword_ref(x, p) ((uint16_t *)(x))[(p)]
//#endif //#endif
#define C_uhword_set(x, p, d) (C_uhword_ref(x,p) = (d)) #define C_uhword_set(x, p, d) (C_uhword_ref(x,p) = (d))