unaligned.h
Upload User: jlfgdled
Upload Date: 2013-04-10
Package Size: 33168k
Code Size: 0k
Development Platform:

Unix_Linux

  1. #ifndef __CRIS_UNALIGNED_H
  2. #define __CRIS_UNALIGNED_H
  3. /*
  4.  * CRIS 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