https://github.com/torvalds/linux
Raw File
Tip revision: 101142c37be8e5af9b847860219217e6b958c739 authored by Linus Torvalds on 15 February 2008, 20:57:20 UTC
Linux 2.6.25-rc2
Tip revision: 101142c
unaligned.h
#ifndef __M68K_UNALIGNED_H
#define __M68K_UNALIGNED_H

/*
 * The m68k can do unaligned accesses itself.
 *
 * The strange macros are there to make sure these can't
 * be misused in a way that makes them not work on other
 * architectures where unaligned accesses aren't as simple.
 */

#define get_unaligned(ptr) (*(ptr))

#define put_unaligned(val, ptr) ((void)( *(ptr) = (val) ))

#endif
back to top