blob: 18fcd7f4fa7ea2355ec5f2e9fbdec094c43cbf5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
$NetBSD: patch-af,v 1.2 1999/12/29 01:45:39 wiz Exp $
*** cpu.h~ Sun Apr 11 22:45:18 1999
--- cpu.h Sun Apr 11 22:46:50 1999
***************
*** 113,125 ****
format and back again. Obviously there is nothing to do for little-endian
machines... */
! #if defined(LITTLE_ENDIAN)
# define ChangeE(x) (WORD)(x)
#else
# define ChangeE(x) (WORD)(((x) << 8) | ((BYTE)((x) >> 8)))
#endif
! #if defined(LITTLE_ENDIAN) && !defined(ALIGNED_ACCESS)
# define ReadWord(x) (*(x))
# define WriteWord(x,y) (*(x) = (y))
# define CopyWord(x,y) (*x = *y)
--- 113,125 ----
format and back again. Obviously there is nothing to do for little-endian
machines... */
! #if BYTE_ORDER == LITTLE_ENDIAN
# define ChangeE(x) (WORD)(x)
#else
# define ChangeE(x) (WORD)(((x) << 8) | ((BYTE)((x) >> 8)))
#endif
! #if BYTE_ORDER == LITTLE_ENDIAN && !defined(ALIGNED_ACCESS)
# define ReadWord(x) (*(x))
# define WriteWord(x,y) (*(x) = (y))
# define CopyWord(x,y) (*x = *y)
|