Home
last modified time | relevance | path

Searched refs:max_n (Results 1 – 3 of 3) sorted by relevance

/xnu-8020.121.3/tests/bounded_ptr_src/
H A Darith.add_assign.cpp126 std::ptrdiff_t max_n = std::numeric_limits<std::ptrdiff_t>::max() / sizeof_T; in tests() local
135 ptr += max_n + 1; in tests()
160 std::int64_t max_n = std::numeric_limits<std::int32_t>::max() / sizeof_T; in tests() local
169 ptr += static_cast<ptrdiff_t>(max_n / 2); in tests()
171 ptr += static_cast<ptrdiff_t>(max_n / 2); in tests()
173 ptr += (max_n % 2); in tests()
H A Darith.subtract_assign.cpp123 std::ptrdiff_t max_n = std::numeric_limits<std::ptrdiff_t>::max() / sizeof_T; in tests() local
132 ptr -= max_n + 1; in tests()
157 std::int64_t max_n = std::numeric_limits<std::int32_t>::max() / sizeof_T; in tests() local
180 ptr -= static_cast<ptrdiff_t>(-max_n / 2); in tests()
182 ptr -= static_cast<ptrdiff_t>(-max_n / 2); in tests()
184 ptr -= (-max_n % 2); in tests()
/xnu-8020.121.3/tests/safe_allocation_src/
H A Dctor.allocate.cpp42 std::size_t max_n = std::numeric_limits<std::size_t>::max() / sizeof(T); in tests() local
46 tracked_safe_allocation<T> array(max_n + 1, libkern::allocate_memory); in tests()