unaligned.h 390 B

12345678910111213141516
  1. #ifndef __M68K_UNALIGNED_H
  2. #define __M68K_UNALIGNED_H
  3. /*
  4. * The m68k can do unaligned accesses itself.
  5. *
  6. * The strange macros are there to make sure these can't
  7. * be misused in a way that makes them not work on other
  8. * architectures where unaligned accesses aren't as simple.
  9. */
  10. #define get_unaligned(ptr) (*(ptr))
  11. #define put_unaligned(val, ptr) ((void)( *(ptr) = (val) ))
  12. #endif