Home
last modified time | relevance | path

Searched refs:align_val_t (Results 1 – 25 of 26) sorted by relevance

12

/external/libcxx/test/libcxx/language.support/support.dynamic/
Dnew_faligned_allocation.sh.cpp42 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 …]
Dlibcpp_deallocate.sh.cpp125 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/
Dalign_val_t.pass.cpp20 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/
Dstdlib_new_delete.cpp141 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/
Dnew.cpp180 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/
Dnew36 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__config978 // 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/
Dmalloc-free-delete.ll177 ; 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/
Dnew_align_val_t_nothrow_replace.pass.cpp71 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[]()
Dnew_align_val_t_replace.pass.cpp50 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
Dnew_size_align.sh.cpp25 …::operator new[](4, std::align_val_t{4}); // expected-warning {{ignoring return value of function… in main()
Dnew_size_align_nothrow.sh.cpp25 …::operator new[](4, std::align_val_t{4}, std::nothrow); // expected-warning {{ignoring return val… in main()
Dnew_align_val_t.pass.cpp77 static_cast<std::align_val_t>(32)); in test_throw_max_size()
Dnew_align_val_t_nothrow.pass.cpp75 std::align_val_t(OverAligned), in test_max_alloc()
Ddelete_align_val_t_replace.pass.cpp76 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/
Dnew_align_val_t_nothrow_replace.pass.cpp72 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()
Dnew_align_val_t_replace.pass.cpp50 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
Dnew_size_align.sh.cpp25 …::operator new(4, std::align_val_t{4}); // expected-warning {{ignoring return value of function d… in main()
Dnew_size_align_nothrow.sh.cpp25 …::operator new(4, std::align_val_t{4}, std::nothrow); // expected-warning {{ignoring return value… in main()
Dnew_align_val_t.pass.cpp77 static_cast<std::align_val_t>(32)); in test_throw_max_size()
Dnew_align_val_t_nothrow.pass.cpp75 std::align_val_t(OverAligned), in test_max_alloc()
Ddelete_align_val_t_replace.pass.cpp75 void operator delete(void* p, std::align_val_t) TEST_NOEXCEPT in operator delete() argument
/external/libcxx/test/support/
Dcount_new.hpp392 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/
DTargetLibraryInfo.def122 /// 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/
DCompiler.h524 std::align_val_t(Alignment) in allocate_buffer()
544 std::align_val_t(Alignment) in deallocate_buffer()

12