* add p cc
[mascara-docs.git] / i386 / linux / linux-2.3.21 / include / asm-ppc / unaligned.h
blob90a54eae9bb51526564d58212a0839fa5d9d4af6
1 #ifndef __PPC_UNALIGNED_H
2 #define __PPC_UNALIGNED_H
4 /*
5 * The PowerPC can do unaligned accesses itself in big endian mode.
7 * The strange macros are there to make sure these can't
8 * be misused in a way that makes them not work on other
9 * architectures where unaligned accesses aren't as simple.
12 #define get_unaligned(ptr) (*(ptr))
14 #define put_unaligned(val, ptr) ((void)( *(ptr) = (val) ))
16 #endif