aboutsummaryrefslogtreecommitdiff
path: root/include/asm-h8300/unaligned.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-h8300/unaligned.h')
-rw-r--r--include/asm-h8300/unaligned.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/include/asm-h8300/unaligned.h b/include/asm-h8300/unaligned.h
deleted file mode 100644
index ffb67f47207..00000000000
--- a/include/asm-h8300/unaligned.h
+++ /dev/null
@@ -1,15 +0,0 @@
-#ifndef __H8300_UNALIGNED_H
-#define __H8300_UNALIGNED_H
-
-
-/* Use memmove here, so gcc does not insert a __builtin_memcpy. */
-
-#define get_unaligned(ptr) \
- ({ __typeof__(*(ptr)) __tmp; memmove(&__tmp, (ptr), sizeof(*(ptr))); __tmp; })
-
-#define put_unaligned(val, ptr) \
- ({ __typeof__(*(ptr)) __tmp = (val); \
- memmove((ptr), &__tmp, sizeof(*(ptr))); \
- (void)0; })
-
-#endif