51
51
#endif /* __hpux */
53
/* FIXME: We currently allow unaligned memory accesses on i386 only, as they
54
allow for some optimizations. What other architectures could benefit from
55
having this enabled? (Maybe the PowerPC would?) */
53
/* currently tested/testing for the following cpu types:
55
* cpu 4*u_char fetch 1*u_int32 fetch define(s)
56
* ----- -------------- --------------- ---------
57
* alpha faster slower __alpha__
58
* arm (gp2x) slower (*) faster (*) GP2X
59
* ppc slower faster __powerpc__ || __ppc__
60
* x86 slower faster __i386__
61
* m68020+ slower faster __m680[2346]0__
63
* arm untested untested __arm__ && !GP2X
64
* bfin untested untested BFIN
65
* hppa untested untested ???
66
* ia64 untested untested __ia64__
67
* m88k untested untested ???
68
* mips untested untested __mips__
69
* s390 untested untested __s390__
70
* s390x untested untested __s390x__
71
* sparc untested untested sparc
72
* sparc64 untested untested ???
73
* vax untested untested __vax__
74
* x86_64 untested untested ???
77
/* Allow unaligned access for i386+ based platforms */
79
#define ALLOW_UNALIGNED_ACCESS
82
/* Allow unaligned access for m68020+ based platforms */
83
#if defined(__m68020__) || defined(__m68030__) || defined(__m68040__) || defined(__m68060__)
84
#define ALLOW_UNALIGNED_ACCESS
87
/* Allow unaligned access for PPC based platforms */
88
#if defined(__powerpc__) || defined(__ppc__)
57
89
#define ALLOW_UNALIGNED_ACCESS