/usr/include/aal/unaligned.h is in libaal-dev 1.0.6-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | /* Copyright (C) 2001-2005 by Hans Reiser, licensing governed by libaal/COPYING.
unaligned.h -- libaal unalignment declaration. */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#ifndef AAL_UNALIGNED_H
#define AAL_UNALIGNED_H
/* unaligned access is allowed on cris, i386, ppc, ppc64, s390, x86_64 */
#if defined(i386) || defined (__i386__) || \
defined(ppc) || defined(__ppc__) || \
defined(PPC) || defined(__ppc) || \
defined(__PPC__) || defined(__powerpc__) || \
defined(powerpc) || defined(__x86_64__) || \
defined(__s390__) || defined(__cris__)
#define get_unaligned(ptr) (*(ptr))
#define put_unaligned(val, ptr) ((void)( *(ptr) = (val) ))
#else
#define get_unaligned(ptr) \
({ \
__typeof__(*(ptr)) __tmp; \
aal_memcpy(&__tmp, (ptr), sizeof(*(ptr))); \
__tmp; \
})
#define put_unaligned(val, ptr) \
({ \
__typeof__(*(ptr)) __tmp = (val); \
aal_memcpy((ptr), &__tmp, sizeof(*(ptr))); \
(void)0; \
})
#endif
#endif
|