https://github.com/torvalds/linux
Raw File
Tip revision: 44597f65f6af3c692560a639f61d25398d13d1b6 authored by Linus Torvalds on 16 November 2006, 04:03:40 UTC
Linux 2.6.19-rc6
Tip revision: 44597f6
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