Missing include for clang assume_aligned
This commit is contained in:
parent
ca041929d4
commit
1598641444
@ -9,6 +9,8 @@
|
||||
#ifndef BOOST_ALIGN_DETAIL_ASSUME_ALIGNED_CLANG_HPP
|
||||
#define BOOST_ALIGN_DETAIL_ASSUME_ALIGNED_CLANG_HPP
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#if defined(__has_builtin) && __has_builtin(__builtin_assume)
|
||||
#define BOOST_ALIGN_ASSUME_ALIGNED(ptr, alignment) \
|
||||
__builtin_assume((uintptr_t(ptr) & ((alignment) - 1)) == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user