mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-12 07:17:37 +02:00
Switch to little endian
This commit is contained in:
parent
5826b53607
commit
b80ea4f58e
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue