]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/align/detail/assume_aligned_clang.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / align / detail / assume_aligned_clang.hpp
1 /*
2 Copyright 2015 Glen Joseph Fernandes
3 (glenjofe@gmail.com)
4
5 Distributed under the Boost Software License, Version 1.0.
6 (http://www.boost.org/LICENSE_1_0.txt)
7 */
8 #ifndef BOOST_ALIGN_DETAIL_ASSUME_ALIGNED_CLANG_HPP
9 #define BOOST_ALIGN_DETAIL_ASSUME_ALIGNED_CLANG_HPP
10
11 #if __has_builtin(__builtin_assume_aligned)
12 #define BOOST_ALIGN_ASSUME_ALIGNED(p, n) \
13 (p) = static_cast<__typeof__(p)>(__builtin_assume_aligned((p), (n)))
14 #else
15 #define BOOST_ALIGN_ASSUME_ALIGNED(p, n)
16 #endif
17
18 #endif