]> Git Repo - linux.git/blame - include/asm-m32r/unaligned.h
Merge branch 'linux-2.6' into merge
[linux.git] / include / asm-m32r / unaligned.h
CommitLineData
1da177e4
LT
1#ifndef _ASM_M32R_UNALIGNED_H
2#define _ASM_M32R_UNALIGNED_H
3
1da177e4
LT
4/*
5 * For the benefit of those who are trying to port Linux to another
6 * architecture, here are some C-language equivalents.
7 */
8
9#include <asm/string.h>
10
1da177e4
LT
11#define get_unaligned(ptr) \
12 ({ __typeof__(*(ptr)) __tmp; memmove(&__tmp, (ptr), sizeof(*(ptr))); __tmp; })
13
14#define put_unaligned(val, ptr) \
15 ({ __typeof__(*(ptr)) __tmp = (val); \
16 memmove((ptr), &__tmp, sizeof(*(ptr))); \
17 (void)0; })
18
fabb626a 19#endif /* _ASM_M32R_UNALIGNED_H */
This page took 0.374453 seconds and 4 git commands to generate.