SASC-NG
DVBSoftCAM

unaligned.h

Go to the documentation of this file.
00001 #ifndef __ASM_UNALIGNED_H
00002 #define __ASM_UNALIGNED_H
00003 
00004 /*
00005  * The i386 can do unaligned accesses itself. 
00006  *
00007  * The strange macros are there to make sure these can't
00008  * be misused in a way that makes them not work on other
00009  * architectures where unaligned accesses aren't as simple.
00010  */
00011 
00022 #define get_unaligned(ptr) (*(ptr))
00023 
00035 #define put_unaligned(val, ptr) ((void)( *(ptr) = (val) ))
00036 
00037 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines