unaligned.h 503 B

123456789101112131415161718192021222324
  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