整理
This commit is contained in:
19
include/boost/align/detail/assume_aligned_msvc.hpp
Normal file
19
include/boost/align/detail/assume_aligned_msvc.hpp
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
Copyright 2015 NumScale SAS
|
||||
Copyright 2015 LRI UMR 8623 CNRS/University Paris Sud XI
|
||||
|
||||
Copyright 2015 Glen Joseph Fernandes
|
||||
(glenjofe@gmail.com)
|
||||
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
#ifndef BOOST_ALIGN_DETAIL_ASSUME_ALIGNED_MSVC_HPP
|
||||
#define BOOST_ALIGN_DETAIL_ASSUME_ALIGNED_MSVC_HPP
|
||||
|
||||
#include <cstddef>
|
||||
|
||||
#define BOOST_ALIGN_ASSUME_ALIGNED(ptr, alignment) \
|
||||
__assume((reinterpret_cast<std::size_t>(ptr) & ((alignment) - 1)) == 0)
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user