unaligned.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:0k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. /*
  2.  *  include/asm-s390/unaligned.h
  3.  *
  4.  *  S390 version
  5.  *
  6.  *  Derived from "include/asm-i386/unaligned.h"
  7.  */
  8. #ifndef __S390_UNALIGNED_H
  9. #define __S390_UNALIGNED_H
  10. /*
  11.  * The S390 can do unaligned accesses itself. 
  12.  *
  13.  * The strange macros are there to make sure these can't
  14.  * be misused in a way that makes them not work on other
  15.  * architectures where unaligned accesses aren't as simple.
  16.  */
  17. #define get_unaligned(ptr) (*(ptr))
  18. #define put_unaligned(val, ptr) ((void)( *(ptr) = (val) ))
  19. #endif