2 * This software is part of the SBCL system. See the README file for
5 * This software is derived from the CMU CL system, which was
6 * written at Carnegie Mellon University and released into the
7 * public domain. The software is in the public domain and is
8 * provided with absolutely no warranty. See the COPYING and CREDITS
9 * files for more information.
12 #ifndef _SBCL_UNALIGNED_H_
13 #define _SBCL_UNALIGNED_H_
15 // For CPUs that can do unaligned memory operations, the C compiler
16 // is generally smart enough to not actually do a memcpy()
17 static inline uint32_t UNALIGNED_LOAD32(void* p
) {
22 static inline void UNALIGNED_STORE32(void* p
, uint32_t val
) {
25 #ifdef LISP_FEATURE_64_BIT
26 static inline void UNALIGNED_STORE64(void* p
, uint64_t val
) {
31 #endif /* _SBCL_UNALIGNED_H_ */