/external/libcxx/test/libcxx/language.support/support.dynamic/ |
D | new_faligned_allocation.sh.cpp | 42 static_assert(std::is_enum<std::align_val_t>::value, ""); in main() 43 typedef std::underlying_type<std::align_val_t>::type UT; in main() 47 static_assert((!std::is_constructible<std::align_val_t, std::size_t>::value), ""); in main() 49 static_assert(!std::is_constructible<std::size_t, std::align_val_t>::value, ""); in main() 51 static_assert((std::is_constructible<std::size_t, std::align_val_t>::value), ""); in main() 55 std::align_val_t a = std::align_val_t(0); in main() 56 std::align_val_t b = std::align_val_t(32); in main() 58 assert(a == std::align_val_t(0)); in main() 59 assert(b == std::align_val_t(32)); in main() 62 void *ptr = ::operator new(1, std::align_val_t(128)); in main() [all …]
|
D | libcpp_deallocate.sh.cpp | 125 void operator delete(void* p, std::align_val_t a)TEST_NOEXCEPT { in operator delete() 132 void operator delete(void* p, size_t n, std::align_val_t a)TEST_NOEXCEPT { in operator delete()
|
/external/libcxx/test/std/language.support/support.dynamic/ |
D | align_val_t.pass.cpp | 20 static_assert(std::is_enum<std::align_val_t>::value, ""); in main() 21 … static_assert(std::is_same<std::underlying_type<std::align_val_t>::type, std::size_t>::value, ""); in main() 22 static_assert(!std::is_constructible<std::align_val_t, std::size_t>::value, ""); in main() 23 static_assert(!std::is_constructible<std::size_t, std::align_val_t>::value, ""); in main() 26 constexpr auto a = std::align_val_t(0); in main() 27 constexpr auto b = std::align_val_t(32); in main() 28 constexpr auto c = std::align_val_t(-1); in main() 30 static_assert(a == std::align_val_t(0), ""); in main() 31 static_assert(b == std::align_val_t(32), ""); in main()
|
/external/libcxxabi/src/ |
D | stdlib_new_delete.cpp | 141 operator new(std::size_t size, std::align_val_t alignment) _THROW_BAD_ALLOC in operator new() 146 alignment = std::align_val_t(sizeof(void*)); in operator new() 173 operator new(size_t size, std::align_val_t alignment, const std::nothrow_t&) _NOEXCEPT in operator new() 192 operator new[](size_t size, std::align_val_t alignment) _THROW_BAD_ALLOC in operator new[]() 199 operator new[](size_t size, std::align_val_t alignment, const std::nothrow_t&) _NOEXCEPT in operator new[]() 218 operator delete(void* ptr, std::align_val_t) _NOEXCEPT in operator delete() argument 230 operator delete(void* ptr, std::align_val_t alignment, const std::nothrow_t&) _NOEXCEPT in operator delete() 237 operator delete(void* ptr, size_t, std::align_val_t alignment) _NOEXCEPT in operator delete() 244 operator delete[] (void* ptr, std::align_val_t alignment) _NOEXCEPT in operator delete[]() 251 operator delete[] (void* ptr, std::align_val_t alignment, const std::nothrow_t&) _NOEXCEPT in operator delete[]() [all …]
|
/external/libcxx/src/ |
D | new.cpp | 180 operator new(std::size_t size, std::align_val_t alignment) _THROW_BAD_ALLOC in operator new() 185 alignment = std::align_val_t(sizeof(void*)); in operator new() 212 operator new(size_t size, std::align_val_t alignment, const std::nothrow_t&) _NOEXCEPT in operator new() 231 operator new[](size_t size, std::align_val_t alignment) _THROW_BAD_ALLOC in operator new[]() 238 operator new[](size_t size, std::align_val_t alignment, const std::nothrow_t&) _NOEXCEPT in operator new[]() 257 operator delete(void* ptr, std::align_val_t) _NOEXCEPT in operator delete() argument 268 operator delete(void* ptr, std::align_val_t alignment, const std::nothrow_t&) _NOEXCEPT in operator delete() 275 operator delete(void* ptr, size_t, std::align_val_t alignment) _NOEXCEPT in operator delete() 282 operator delete[] (void* ptr, std::align_val_t alignment) _NOEXCEPT in operator delete[]() 289 operator delete[] (void* ptr, std::align_val_t alignment, const std::nothrow_t&) _NOEXCEPT in operator delete[]() [all …]
|
/external/libcxx/include/ |
D | new | 36 enum class align_val_t : size_t {}; // C++17 48 void* operator new(std::size_t size, std::align_val_t alignment); // replaceable, C++17, nodi… 50 void* operator new(std::size_t size, std::align_val_t alignment, 54 void operator delete(void* ptr, std::align_val_t alignment) noexcept; // replaceable, C++17 56 std::align_val_t alignment) noexcept; // replaceable, C++17 58 void operator delete(void* ptr, std:align_val_t alignment, 63 … std::align_val_t alignment) noexcept; // replaceable, C++17, nodiscard in C++2a 65 void* operator new[](std::size_t size, std::align_val_t alignment, 70 std::align_val_t alignment) noexcept; // replaceable, C++17 72 std::align_val_t alignment) noexcept; // replaceable, C++17 [all …]
|
D | __config | 978 // for align_val_t were added in 19.12, aka VS 2017 version 15.3.
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/InstCombine/ |
D | malloc-free-delete.ll | 177 ; new(size_t, align_val_t) 180 ; new[](size_t, align_val_t) 183 ; new(size_t, align_val_t, nothrow) 186 ; new[](size_t, align_val_t, nothrow) 189 ; delete(void*, align_val_t) 191 ; delete[](void*, align_val_t) 193 ; delete(void*, align_val_t, nothrow) 195 ; delete[](void*, align_val_t, nothrow)
|
/external/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/ |
D | new_align_val_t_nothrow_replace.pass.cpp | 71 void* operator new[](std::size_t s, std::align_val_t a) TEST_THROW_SPEC(std::bad_alloc) in operator new[]() 80 void operator delete[](void* p, std::align_val_t a) TEST_NOEXCEPT in operator delete[]()
|
D | new_align_val_t_replace.pass.cpp | 50 void* operator new[](std::size_t s, std::align_val_t a) TEST_THROW_SPEC(std::bad_alloc) in operator new[]() 61 void operator delete[](void* p, std::align_val_t) TEST_NOEXCEPT in operator delete[]() argument
|
D | new_size_align.sh.cpp | 25 …::operator new[](4, std::align_val_t{4}); // expected-warning {{ignoring return value of function… in main()
|
D | new_size_align_nothrow.sh.cpp | 25 …::operator new[](4, std::align_val_t{4}, std::nothrow); // expected-warning {{ignoring return val… in main()
|
D | new_align_val_t.pass.cpp | 77 static_cast<std::align_val_t>(32)); in test_throw_max_size()
|
D | new_align_val_t_nothrow.pass.cpp | 75 std::align_val_t(OverAligned), in test_max_alloc()
|
D | delete_align_val_t_replace.pass.cpp | 76 void operator delete [] (void* p, std::align_val_t) TEST_NOEXCEPT in operator delete[]() argument
|
/external/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/ |
D | new_align_val_t_nothrow_replace.pass.cpp | 72 void* operator new(std::size_t s, std::align_val_t a) TEST_THROW_SPEC(std::bad_alloc) in operator new() 81 void operator delete(void* p, std::align_val_t a) TEST_NOEXCEPT in operator delete()
|
D | new_align_val_t_replace.pass.cpp | 50 void* operator new(std::size_t s, std::align_val_t a) TEST_THROW_SPEC(std::bad_alloc) in operator new() 61 void operator delete(void* p, std::align_val_t) TEST_NOEXCEPT in operator delete() argument
|
D | new_size_align.sh.cpp | 25 …::operator new(4, std::align_val_t{4}); // expected-warning {{ignoring return value of function d… in main()
|
D | new_size_align_nothrow.sh.cpp | 25 …::operator new(4, std::align_val_t{4}, std::nothrow); // expected-warning {{ignoring return value… in main()
|
D | new_align_val_t.pass.cpp | 77 static_cast<std::align_val_t>(32)); in test_throw_max_size()
|
D | new_align_val_t_nothrow.pass.cpp | 75 std::align_val_t(OverAligned), in test_max_alloc()
|
D | delete_align_val_t_replace.pass.cpp | 75 void operator delete(void* p, std::align_val_t) TEST_NOEXCEPT in operator delete() argument
|
/external/libcxx/test/support/ |
D | count_new.hpp | 392 void* operator new(std::size_t s, std::align_val_t av) TEST_THROW_SPEC(std::bad_alloc) { in operator new() 406 void operator delete(void *p, std::align_val_t av) TEST_NOEXCEPT { in operator delete() 418 void* operator new[](std::size_t s, std::align_val_t av) TEST_THROW_SPEC(std::bad_alloc) { in operator new[]() 424 void operator delete[](void *p, std::align_val_t av) TEST_NOEXCEPT { in operator delete[]()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/ |
D | TargetLibraryInfo.def | 122 /// void operator delete[](void*, align_val_t); 125 /// void operator delete[](void*, align_val_t, nothrow) 140 /// void operator delete(void*, align_val_t) 143 /// void operator delete(void*, align_val_t, nothrow) 158 /// void *new[](unsigned int, align_val_t) 161 /// void *new[](unsigned int, align_val_t, nothrow) 170 /// void *new[](unsigned long, align_val_t) 173 /// void *new[](unsigned long, align_val_t, nothrow) 182 /// void *new(unsigned int, align_val_t) 185 /// void *new(unsigned int, align_val_t, nothrow) [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/ |
D | Compiler.h | 524 std::align_val_t(Alignment) in allocate_buffer() 544 std::align_val_t(Alignment) in deallocate_buffer()
|