assume_aligned_gcc.hpp 470 B

1234567891011121314151617
  1. /*
  2. Copyright 2015 NumScale SAS
  3. Copyright 2015 LRI UMR 8623 CNRS/University Paris Sud XI
  4. Copyright 2015 Glen Joseph Fernandes
  5. (glenjofe@gmail.com)
  6. Distributed under the Boost Software License, Version 1.0.
  7. (http://www.boost.org/LICENSE_1_0.txt)
  8. */
  9. #ifndef BOOST_ALIGN_DETAIL_ASSUME_ALIGNED_GCC_HPP
  10. #define BOOST_ALIGN_DETAIL_ASSUME_ALIGNED_GCC_HPP
  11. #define BOOST_ALIGN_ASSUME_ALIGNED(p, n) \
  12. (p) = static_cast<__typeof__(p)>(__builtin_assume_aligned((p), (n)))
  13. #endif