/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 …]
|
/external/cronet/buildtools/third_party/libc++/trunk/test/libcxx/language.support/support.dynamic/ |
D | new_faligned_allocation.pass.cpp | 33 void* ptr = ::operator new(size, std::align_val_t(alignment)); in test_allocations() 36 ::operator delete(ptr, std::align_val_t(alignment)); in test_allocations() 39 void* ptr = ::operator new(size, std::align_val_t(alignment), std::nothrow); in test_allocations() 42 ::operator delete(ptr, std::align_val_t(alignment), std::nothrow); in test_allocations() 45 void* ptr = ::operator new[](size, std::align_val_t(alignment)); in test_allocations() 48 ::operator delete[](ptr, std::align_val_t(alignment)); in test_allocations() 51 void* ptr = ::operator new[](size, std::align_val_t(alignment), std::nothrow); in test_allocations() 54 ::operator delete[](ptr, std::align_val_t(alignment), std::nothrow); in test_allocations() 60 static_assert(std::is_enum<std::align_val_t>::value, ""); in main() 61 typedef std::underlying_type<std::align_val_t>::type UT; in main() [all …]
|
/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/cronet/buildtools/third_party/libc++/trunk/test/std/language.support/support.dynamic/ |
D | align_val_t.pass.cpp | 24 static_assert(std::is_enum<std::align_val_t>::value, ""); in main() 25 … static_assert(std::is_same<std::underlying_type<std::align_val_t>::type, std::size_t>::value, ""); in main() 26 static_assert(!std::is_constructible<std::align_val_t, std::size_t>::value, ""); in main() 27 static_assert(!std::is_constructible<std::size_t, std::align_val_t>::value, ""); in main() 30 constexpr auto a = std::align_val_t(0); in main() 31 constexpr auto b = std::align_val_t(32); in main() 32 constexpr auto c = std::align_val_t(-1); in main() 34 static_assert(a == std::align_val_t(0), ""); in main() 35 static_assert(b == std::align_val_t(32), ""); in main()
|
/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/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/cronet/buildtools/third_party/libc++abi/trunk/src/ |
D | stdlib_new_delete.cpp | 139 operator new(std::size_t size, std::align_val_t alignment) _THROW_BAD_ALLOC in operator new() 144 alignment = std::align_val_t(sizeof(void*)); in operator new() 171 operator new(size_t size, std::align_val_t alignment, const std::nothrow_t&) noexcept in operator new() 190 operator new[](size_t size, std::align_val_t alignment) _THROW_BAD_ALLOC in operator new[]() 197 operator new[](size_t size, std::align_val_t alignment, const std::nothrow_t&) noexcept in operator new[]() 216 operator delete(void* ptr, std::align_val_t) noexcept in operator delete() argument 223 operator delete(void* ptr, std::align_val_t alignment, const std::nothrow_t&) noexcept in operator delete() 230 operator delete(void* ptr, size_t, std::align_val_t alignment) noexcept in operator delete() 237 operator delete[] (void* ptr, std::align_val_t alignment) noexcept in operator delete[]() 244 operator delete[] (void* ptr, std::align_val_t alignment, const std::nothrow_t&) noexcept in operator delete[]() [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/src/ |
D | new.cpp | 176 operator new(std::size_t size, std::align_val_t alignment) _THROW_BAD_ALLOC in operator new() 181 alignment = std::align_val_t(sizeof(void*)); in operator new() 208 operator new(size_t size, std::align_val_t alignment, const std::nothrow_t&) noexcept in operator new() 227 operator new[](size_t size, std::align_val_t alignment) _THROW_BAD_ALLOC in operator new[]() 234 operator new[](size_t size, std::align_val_t alignment, const std::nothrow_t&) noexcept in operator new[]() 253 operator delete(void* ptr, std::align_val_t) noexcept in operator delete() argument 260 operator delete(void* ptr, std::align_val_t alignment, const std::nothrow_t&) noexcept in operator delete() 267 operator delete(void* ptr, size_t, std::align_val_t alignment) noexcept in operator delete() 274 operator delete[] (void* ptr, std::align_val_t alignment) noexcept in operator delete[]() 281 operator delete[] (void* ptr, std::align_val_t alignment, const std::nothrow_t&) noexcept in operator delete[]() [all …]
|
/external/cronet/base/allocator/partition_allocator/shim/ |
D | allocator_shim_override_cpp_symbols.h | 79 std::align_val_t alignment) { in new() 84 std::align_val_t alignment, in new() 90 std::align_val_t) __THROW { in delete() argument 96 std::align_val_t) __THROW { in delete() argument 101 std::align_val_t, in delete() argument 107 std::align_val_t alignment) { 112 std::align_val_t alignment, 118 std::align_val_t) __THROW { 124 std::align_val_t) __THROW { 129 std::align_val_t,
|
/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 …]
|
/external/cronet/buildtools/third_party/libc++/trunk/include/ |
D | new | 35 enum class align_val_t : size_t {}; // C++17 53 void* operator new(std::size_t size, std::align_val_t alignment); // replaceable, C++17, nodi… 55 void* operator new(std::size_t size, std::align_val_t alignment, 59 void operator delete(void* ptr, std::align_val_t alignment) noexcept; // replaceable, C++17 61 std::align_val_t alignment) noexcept; // replaceable, C++17 63 void operator delete(void* ptr, std:align_val_t alignment, 68 … std::align_val_t alignment) noexcept; // replaceable, C++17, nodiscard in C++20 70 void* operator new[](std::size_t size, std::align_val_t alignment, 75 std::align_val_t alignment) noexcept; // replaceable, C++17 77 std::align_val_t alignment) noexcept; // replaceable, C++17 [all …]
|
/external/scudo/standalone/ |
D | wrappers_cpp.cpp | 21 enum class align_val_t : size_t {}; enum 38 INTERFACE WEAK void *operator new(size_t size, std::align_val_t align) { in operator new() 42 INTERFACE WEAK void *operator new[](size_t size, std::align_val_t align) { in operator new[]() 46 INTERFACE WEAK void *operator new(size_t size, std::align_val_t align, in operator new() 51 INTERFACE WEAK void *operator new[](size_t size, std::align_val_t align, in operator new[]() 78 std::align_val_t align) NOEXCEPT { in operator delete() 83 std::align_val_t align) NOEXCEPT { in operator delete[]() 87 INTERFACE WEAK void operator delete(void *ptr, std::align_val_t align, in operator delete() 92 INTERFACE WEAK void operator delete[](void *ptr, std::align_val_t align, in operator delete[]() 98 std::align_val_t align) NOEXCEPT { in operator delete() [all …]
|
/external/libgav1/src/utils/ |
D | memory.h | 187 return ::operator new(size, std::align_val_t(kMaxAlignment), tag); in new() 196 return ::operator new[](size, std::align_val_t(kMaxAlignment), tag); 206 ::operator delete(ptr, std::align_val_t(kMaxAlignment)); in delete() 213 ::operator delete[](ptr, std::align_val_t(kMaxAlignment)); 223 ::operator delete(ptr, std::align_val_t(kMaxAlignment), tag); in delete() 233 ::operator delete[](ptr, std::align_val_t(kMaxAlignment), tag);
|
/external/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/ |
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_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()
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/language.support/support.dynamic/new.delete/new.delete.single/ |
D | delete_align_val_t_replace.pass.cpp | 41 void* operator new (std::size_t s, std::align_val_t) in operator new() argument 59 void operator delete(void*, std::align_val_t) noexcept in operator delete() argument
|
D | new_align_val_t_nothrow_replace.pass.cpp | 52 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 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
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/language.support/support.dynamic/new.delete/new.delete.array/ |
D | new_align_val_t_nothrow_replace.pass.cpp | 52 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 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 | delete_align_val_t_replace.pass.cpp | 38 void* operator new [] (std::size_t s, std::align_val_t) in operator new[]() argument 56 void operator delete [] (void*, std::align_val_t) noexcept in operator delete[]() argument
|
/external/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/ |
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_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[]()
|
/external/cronet/buildtools/third_party/libc++/trunk/include/__memory/ |
D | temporary_buffer.h | 41 align_val_t __al = in get_temporary_buffer() 42 align_val_t(alignment_of<_Tp>::value); in get_temporary_buffer()
|
/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[]()
|