Home
last modified time | relevance | path

Searched full:reserve (Results 1 – 25 of 9833) sorted by relevance

12345678910>>...394

/aosp_15_r20/external/llvm-libc/test/src/string/
H A Dstrtok_r_test.cpp15 char *reserve = nullptr; in TEST() local
16 ASSERT_STREQ(LIBC_NAMESPACE::strtok_r(empty, "", &reserve), nullptr); in TEST()
17 // Another call to ensure that 'reserve' is not in a bad state. in TEST()
18 ASSERT_STREQ(LIBC_NAMESPACE::strtok_r(empty, "", &reserve), nullptr); in TEST()
19 ASSERT_STREQ(LIBC_NAMESPACE::strtok_r(nullptr, "", &reserve), nullptr); in TEST()
23 char *reserve = nullptr; in TEST() local
24 ASSERT_STREQ(LIBC_NAMESPACE::strtok_r(empty, "_", &reserve), nullptr); in TEST()
25 // Another call to ensure that 'reserve' is not in a bad state. in TEST()
26 ASSERT_STREQ(LIBC_NAMESPACE::strtok_r(empty, "_", &reserve), nullptr); in TEST()
27 ASSERT_STREQ(LIBC_NAMESPACE::strtok_r(nullptr, "_", &reserve), nullptr); in TEST()
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/tokio-util/tests/
Dmpsc.rs16 let mut reserve = spawn(poll_fn(|cx| send.poll_reserve(cx))); in simple() localVariable
17 assert_ready_ok!(reserve.poll()); in simple()
21 let mut reserve = spawn(poll_fn(|cx| send.poll_reserve(cx))); in simple() localVariable
22 assert_pending!(reserve.poll()); in simple()
25 assert!(reserve.is_woken()); in simple()
26 assert_ready_ok!(reserve.poll()); in simple()
41 let mut reserve = spawn(poll_fn(|cx| send.poll_reserve(cx))); in simple_ref() localVariable
42 assert_ready_ok!(reserve.poll()); in simple_ref()
46 let mut reserve = spawn(poll_fn(|cx| send.poll_reserve(cx))); in simple_ref() localVariable
47 assert_pending!(reserve.poll()); in simple_ref()
[all …]
Dcodecs.rs50 buf.reserve(200); in lines_decoder()
69 buf.reserve(200); in lines_decoder_invalid_utf8()
85 buf.reserve(200); in lines_decoder_max_length()
129 buf.reserve(200); in lines_decoder_max_length_underrun()
150 buf.reserve(200); in lines_decoder_max_length_bursts()
166 buf.reserve(200); in lines_decoder_max_length_big_burst()
180 buf.reserve(200); in lines_decoder_max_length_newline_between_decodes()
196 buf.reserve(200); in lines_decoder_discard_repeat()
211 buf.reserve(200); in lines_decoder_max_length_underrun_twice()
238 buf.reserve(200); in any_delimiters_decoder_any_character()
[all …]
/aosp_15_r20/external/swiftshader/third_party/llvm-10.0/configs/common/lib/Target/RISCV/
H A DRISCVGenSubtargetInfo.inc78 { "reserve-x1", "Reserve X1", RISCV::FeatureReserveX1, { { { 0x0ULL, 0x0ULL, 0x0ULL, } } } },
79 { "reserve-x10", "Reserve X10", RISCV::FeatureReserveX10, { { { 0x0ULL, 0x0ULL, 0x0ULL, } } } },
80 { "reserve-x11", "Reserve X11", RISCV::FeatureReserveX11, { { { 0x0ULL, 0x0ULL, 0x0ULL, } } } },
81 { "reserve-x12", "Reserve X12", RISCV::FeatureReserveX12, { { { 0x0ULL, 0x0ULL, 0x0ULL, } } } },
82 { "reserve-x13", "Reserve X13", RISCV::FeatureReserveX13, { { { 0x0ULL, 0x0ULL, 0x0ULL, } } } },
83 { "reserve-x14", "Reserve X14", RISCV::FeatureReserveX14, { { { 0x0ULL, 0x0ULL, 0x0ULL, } } } },
84 { "reserve-x15", "Reserve X15", RISCV::FeatureReserveX15, { { { 0x0ULL, 0x0ULL, 0x0ULL, } } } },
85 { "reserve-x16", "Reserve X16", RISCV::FeatureReserveX16, { { { 0x0ULL, 0x0ULL, 0x0ULL, } } } },
86 { "reserve-x17", "Reserve X17", RISCV::FeatureReserveX17, { { { 0x0ULL, 0x0ULL, 0x0ULL, } } } },
87 { "reserve-x18", "Reserve X18", RISCV::FeatureReserveX18, { { { 0x0ULL, 0x0ULL, 0x0ULL, } } } },
[all …]
/aosp_15_r20/external/armnn/src/profiling/test/
H A DBufferTests.cpp121 auto packetBuffer = bufferManager.Reserve(512, reservedSize);
133 // Cannot reserve buffer bigger than maximum buffer size
134 auto reservedBuffer = bufferManager.Reserve(1024, reservedSize);
143 auto packetBuffer = bufferManager.Reserve(512, reservedSize);
149 // Cannot reserve buffer when buffer is not available
151 // initial size * 3 we should be able to reserve three
153 packetBuffer = bufferManager.Reserve(512, reservedSize);
159 packetBuffer = bufferManager.Reserve(512, reservedSize);
165 auto reservedBuffer = bufferManager.Reserve(512, reservedSize);
174 auto packetBuffer0 = bufferManager.Reserve(512, reservedSize0);
[all …]
/aosp_15_r20/external/linux-kselftest/tools/testing/selftests/vm/
H A Dcharge_reserved_hugetlb.sh159 local reserve="$9"
185 "$cgroup" "$path" "$method" "$private" "-l" "$reserve" 2>&1 | tee $output &
207 elif [[ "$reserve" != "-n" ]]; then
218 "$cgroup" "$path" "$method" "$private" "$reserve"
221 if [[ "$reserve" != "-n" ]]; then
277 local reserve="${10}"
295 "$reserve"
325 local reserve="${15}"
349 "$expect_failure" "$reserve"
366 "$expect_failure" "$reserve"
[all …]
/aosp_15_r20/external/sdk-platform-java/gax-java/gax/src/test/java/com/google/api/gax/batching/
H A DFlowControllerTest.java74 flowController.reserve(1, 1); in testReserveRelease_ok()
88 flowController.reserve(0, 0); in testInvalidArguments()
90 flowController.reserve(-1, 1); in testInvalidArguments()
96 flowController.reserve(1, -1); in testInvalidArguments()
125 flowController.reserve(1, 1); in testReserveRelease_noLimits_ok()
139 flowController.reserve(1, 1); in testReserveRelease_ignore_ok()
197 flowController.reserve(1, 1); in testBlockingReserveRelease()
208 flowController.reserve(maxElementCount, maxNumBytes); in testBlockingReserveRelease()
293 flowController.reserve(1, 1); in testRestoreAfterFail()
296 flowController.reserve(1, 1); in testRestoreAfterFail()
[all …]
/aosp_15_r20/external/cronet/base/allocator/partition_allocator/src/partition_alloc/
H A Daddress_pool_manager_unittest.cc95 GetAddressPoolManager()->Reserve(pool_, 0, kPageCnt * kSuperPageSize), in TEST_F()
97 EXPECT_EQ(GetAddressPoolManager()->Reserve(pool_, 0, kSuperPageSize), 0u); in TEST_F()
102 GetAddressPoolManager()->Reserve(pool_, 0, kPageCnt * kSuperPageSize), in TEST_F()
111 addrs[i] = GetAddressPoolManager()->Reserve(pool_, 0, kSuperPageSize); in TEST_F()
114 EXPECT_EQ(GetAddressPoolManager()->Reserve(pool_, 0, kSuperPageSize), 0u); in TEST_F()
121 EXPECT_EQ(GetAddressPoolManager()->Reserve(pool_, 0, 2 * kSuperPageSize), 0u); in TEST_F()
122 // Reserve freed super pages back, so that there are no free ones. in TEST_F()
124 addrs[i] = GetAddressPoolManager()->Reserve(pool_, 0, kSuperPageSize); in TEST_F()
127 EXPECT_EQ(GetAddressPoolManager()->Reserve(pool_, 0, kSuperPageSize), 0u); in TEST_F()
137 addrs[i] = GetAddressPoolManager()->Reserve(pool_, 0, kSuperPageSize); in TEST_F()
[all …]
/aosp_15_r20/external/private-join-and-compute/private_join_and_compute/crypto/dodis_yampolskiy_prf/
H A Dbb_oblivious_signature.cc69 encrypted_masked_messages.reserve(num_camenisch_shoup_ciphertexts); in GenerateHomomorphicCsCiphertexts()
188 public_key_proto.mutable_encrypted_k()->Reserve( in GenerateKeys()
190 public_key_proto.mutable_encrypted_y()->Reserve( in GenerateKeys()
253 as.reserve(messages.size()); in GenerateRequestAndProof()
254 bs.reserve(messages.size()); in GenerateRequestAndProof()
255 alphas.reserve(messages.size()); in GenerateRequestAndProof()
256 gammas.reserve(messages.size()); in GenerateRequestAndProof()
260 masked_messages.reserve(messages.size()); in GenerateRequestAndProof()
272 parsed_encrypted_k.reserve( in GenerateRequestAndProof()
275 parsed_encrypted_y.reserve( in GenerateRequestAndProof()
[all …]
/aosp_15_r20/external/cronet/third_party/libc++/src/test/std/containers/sequences/vector/vector.capacity/
H A Dreserve.pass.cpp11 // void reserve(size_type n);
24 v.reserve(10); in tests()
31 v.reserve(50); in tests()
34 v.reserve(150); in tests()
43 v.reserve(50); in tests()
46 v.reserve(150); in tests()
57 v.reserve(sz); in tests()
71 v.reserve(sz); in tests()
87 v.reserve(10); in tests()
94 v.reserve(50); in tests()
[all …]
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/container/test/
Dinsert_vs_emplace_test.cpp119 v.reserve(4); in main()
133 v.reserve(4); in main()
147 v.reserve(4); in main()
161 v.reserve(4); in main()
176 v.reserve(4); in main()
190 v.reserve(4); in main()
205 v.reserve(4); in main()
218 v.reserve(4); in main()
235 v.reserve(3); in main()
249 v.reserve(3); in main()
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/vulkano/src/descriptor_set/
Dallocator.rs232 let inner = if let Some(inner) = self.pool.reserve.pop() { in allocate()
238 self.pool.reserve.pop().unwrap() in allocate()
255 reserve: ArrayQueue<UnsafeDescriptorSet>, field
278 let reserve = match unsafe { inner.allocate_descriptor_sets(allocate_infos) } { in new() localVariable
280 let reserve = ArrayQueue::new(set_count); in new() localVariable
282 let _ = reserve.push(alloc); in new()
285 reserve in new()
305 reserve, in new()
313 // we grab one from the reserve, or create a new pool if there are none.
316 reserve: Arc<ArrayQueue<DescriptorPool>>, field
[all …]
/aosp_15_r20/external/webrtc/modules/audio_coding/neteq/
H A Daudio_vector.cc41 copy_to->Reserve(Size()); in CopyTo()
68 // Although the subsequent calling to PushFront does Reserve in it, it is in PushFront()
69 // always more efficient to do a big Reserve first. in PushFront()
70 Reserve(Size() + length); in PushFront()
84 Reserve(Size() + length); in PushFront()
110 // Although the subsequent calling to PushBack does Reserve in it, it is in PushBack()
111 // always more efficient to do a big Reserve first. in PushBack()
112 Reserve(Size() + length); in PushBack()
128 Reserve(Size() + length); in PushBack()
205 // Although the subsequent calling to OverwriteAt does Reserve in it, it is in OverwriteAt()
[all …]
/aosp_15_r20/external/skia/src/core/
H A DSkWriter32.h39 * SkWriter32 will try to back reserve and write calls with this external storage until the
67 uint32_t* reserve(size_t size) { in reserve() function
110 *(int32_t*)this->reserve(sizeof(value)) = value & 0xFF; in write8()
114 *(int32_t*)this->reserve(sizeof(value)) = value & 0xFFFF; in write16()
118 *(int32_t*)this->reserve(sizeof(value)) = value; in write32()
122 *(SkScalar*)this->reserve(sizeof(value)) = value; in writeScalar()
126 *(SkPoint*)this->reserve(sizeof(pt)) = pt; in writePoint()
130 *(SkPoint3*)this->reserve(sizeof(pt)) = pt; in writePoint3()
134 *(SkRect*)this->reserve(sizeof(rect)) = rect; in writeRect()
138 *(SkIRect*)this->reserve(sizeof(rect)) = rect; in writeIRect()
[all …]
/aosp_15_r20/external/angle/src/libANGLE/
H A DHandleAllocator_unittest.cpp31 allocator.reserve(id); in TEST()
56 allocator.reserve(randomHandle); in TEST()
88 limitedAllocator.reserve(count); in TEST()
102 allocator.reserve(maxUintHandle); in TEST()
114 allocator.reserve(maxUintHandle - 1); in TEST()
115 allocator.reserve(maxUintHandle); in TEST()
126 allocator.reserve(3); in TEST()
148 allocator.reserve(3); in TEST()
189 allocator.reserve(5); in TEST()
190 allocator.reserve(6); in TEST()
[all …]
/aosp_15_r20/external/cronet/third_party/libc++/src/test/libcxx/strings/basic.string/string.capacity/
H A DPR53170.pass.cpp11 // void reserve(); // Deprecated in C++20.
12 // void reserve(size_type);
16 // This test ensures that libc++ implements https://wg21.link/P0966R1 (reserve never shrinks)
17 …before C++20. This is required in order to avoid ODR violations because basic_string::reserve(size)
20 // However, note that reserve() does shrink, and it does so in all Standard modes.
24 // reserve(n) used to shrink the string until https://llvm.org/D117332 was shipped.
36 // Test that a call to reserve() does shrink the string. in test()
43 s.reserve(); in test()
47 // Test that a call to reserve(smaller-than-capacity) never shrinks the string. in test()
54 s.reserve(10); in test()
[all …]
/aosp_15_r20/external/llvm/test/CodeGen/AArch64/
H A Darm64-platform-reg.ll1 ; RUN: llc -mtriple=arm64-apple-ios -mattr=+reserve-x18 -o - %s | FileCheck %s --check-prefix=CHECK…
2 … RUN: llc -mtriple=arm64-freebsd-gnu -mattr=+reserve-x18 -o - %s | FileCheck %s --check-prefix=CHE…
20 ; CHECK-RESERVE-X18-NOT: ldr fp
21 ; CHECK-RESERVE-X18-NOT: ldr x18
22 ; CHECK-RESERVE-X18: Spill
23 ; CHECK-RESERVE-X18-NOT: ldr fp
24 ; CHECK-RESERVE-X18-NOT: ldr x18
25 ; CHECK-RESERVE-X18: ret
/aosp_15_r20/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/lib/gcc/x86_64-w64-mingw32/4.8.3/plugin/include/
Dvec.h75 be more efficient to use the reserve operation before adding the
78 increase if there are too few spare slots. If you want reserve a
162 allocation must reserve enough space for all the elements
269 static void reserve (vec<T, va_heap, vl_embed> *&, unsigned, bool
277 /* Allocator for heap memory. Ensure there are at least RESERVE free
280 allocated and and RESERVE is 0, no vector will be created. */
284 va_heap::reserve (vec<T, va_heap, vl_embed> *&v, unsigned reserve, bool exact in reserve() argument
288 = vec_prefix::calculate_allocation (v ? &v->vecpfx_ : 0, reserve, exact); in reserve()
336 static void reserve (vec<T, A, vl_embed> *&, unsigned, bool
344 /* Allocator for GC memory. Ensure there are at least RESERVE free
[all …]
/aosp_15_r20/external/pytorch/torch/csrc/jit/tensorexpr/
H A Dir_cloner.cpp140 indices_new.reserve(v->indices().size()); in mutate()
179 params_new.reserve(v->nparams()); in mutate()
190 variables_new.reserve(v->variables().size()); in mutate()
201 variables_new.reserve(v->variables().size()); in mutate()
218 variables_new.reserve(v->variables().size()); in mutate()
231 variables_new.reserve(v->variables().size()); in mutate()
243 reduce_args_new.reserve(v->reduce_args().size()); in mutate()
261 stmts_new.reserve(v->nstmts()); in mutate()
270 indices_new.reserve(v->indices().size()); in mutate()
281 indices_new.reserve(v->indices().size()); in mutate()
[all …]
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.81.0/lib/rustlib/src/rust/library/alloc/src/raw_vec/
H A Dtests.rs46 v.reserve(50, 150); // (causes a realloc, thus using 50 + 150 = 200 units of fuel) in allocator_param()
54 // First, `reserve` allocates like `reserve_exact`. in reserve_does_not_overallocate()
55 v.reserve(0, 9); in reserve_does_not_overallocate()
61 v.reserve(0, 7); in reserve_does_not_overallocate()
63 // 97 is more than double of 7, so `reserve` should work in reserve_does_not_overallocate()
65 v.reserve(7, 90); in reserve_does_not_overallocate()
71 v.reserve(0, 12); in reserve_does_not_overallocate()
73 v.reserve(12, 3); in reserve_does_not_overallocate()
74 // 3 is less than half of 12, so `reserve` must grow in reserve_does_not_overallocate()
124 v.reserve(100, usize::MAX - 100); in zst()
[all …]
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.80.1/lib/rustlib/src/rust/library/alloc/src/raw_vec/
H A Dtests.rs46 v.reserve(50, 150); // (causes a realloc, thus using 50 + 150 = 200 units of fuel) in allocator_param()
54 // First, `reserve` allocates like `reserve_exact`. in reserve_does_not_overallocate()
55 v.reserve(0, 9); in reserve_does_not_overallocate()
61 v.reserve(0, 7); in reserve_does_not_overallocate()
63 // 97 is more than double of 7, so `reserve` should work in reserve_does_not_overallocate()
65 v.reserve(7, 90); in reserve_does_not_overallocate()
71 v.reserve(0, 12); in reserve_does_not_overallocate()
73 v.reserve(12, 3); in reserve_does_not_overallocate()
74 // 3 is less than half of 12, so `reserve` must grow in reserve_does_not_overallocate()
124 v.reserve(100, usize::MAX - 100); in zst()
[all …]
/aosp_15_r20/prebuilts/rust/linux-x86/1.80.1/lib/rustlib/src/rust/library/alloc/src/raw_vec/
H A Dtests.rs46 v.reserve(50, 150); // (causes a realloc, thus using 50 + 150 = 200 units of fuel) in allocator_param()
54 // First, `reserve` allocates like `reserve_exact`. in reserve_does_not_overallocate()
55 v.reserve(0, 9); in reserve_does_not_overallocate()
61 v.reserve(0, 7); in reserve_does_not_overallocate()
63 // 97 is more than double of 7, so `reserve` should work in reserve_does_not_overallocate()
65 v.reserve(7, 90); in reserve_does_not_overallocate()
71 v.reserve(0, 12); in reserve_does_not_overallocate()
73 v.reserve(12, 3); in reserve_does_not_overallocate()
74 // 3 is less than half of 12, so `reserve` must grow in reserve_does_not_overallocate()
124 v.reserve(100, usize::MAX - 100); in zst()
[all …]
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0.u1/lib/rustlib/src/rust/library/alloc/src/raw_vec/
H A Dtests.rs46 v.reserve(50, 150); // (causes a realloc, thus using 50 + 150 = 200 units of fuel) in allocator_param()
54 // First, `reserve` allocates like `reserve_exact`. in reserve_does_not_overallocate()
55 v.reserve(0, 9); in reserve_does_not_overallocate()
61 v.reserve(0, 7); in reserve_does_not_overallocate()
63 // 97 is more than double of 7, so `reserve` should work in reserve_does_not_overallocate()
65 v.reserve(7, 90); in reserve_does_not_overallocate()
71 v.reserve(0, 12); in reserve_does_not_overallocate()
73 v.reserve(12, 3); in reserve_does_not_overallocate()
74 // 3 is less than half of 12, so `reserve` must grow in reserve_does_not_overallocate()
124 v.reserve(100, usize::MAX - 100); in zst()
[all …]
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0/lib/rustlib/src/rust/library/alloc/src/raw_vec/
H A Dtests.rs46 v.reserve(50, 150); // (causes a realloc, thus using 50 + 150 = 200 units of fuel) in allocator_param()
54 // First, `reserve` allocates like `reserve_exact`. in reserve_does_not_overallocate()
55 v.reserve(0, 9); in reserve_does_not_overallocate()
61 v.reserve(0, 7); in reserve_does_not_overallocate()
63 // 97 is more than double of 7, so `reserve` should work in reserve_does_not_overallocate()
65 v.reserve(7, 90); in reserve_does_not_overallocate()
71 v.reserve(0, 12); in reserve_does_not_overallocate()
73 v.reserve(12, 3); in reserve_does_not_overallocate()
74 // 3 is less than half of 12, so `reserve` must grow in reserve_does_not_overallocate()
124 v.reserve(100, usize::MAX - 100); in zst()
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/vulkano/src/buffer/
Dallocator.rs164 reserve: None, in new()
182 state.reserve = None; in set_arena_size()
190 pub fn reserve(&self, size: DeviceSize) -> Result<(), AllocationCreationError> { in reserve() function
194 state.reserve = None; in reserve()
286 reserve: Option<Arc<ArrayQueue<Arc<Buffer>>>>, field
308 self.reserve = None; in allocate()
338 if self.reserve.is_none() { in next_arena()
339 self.reserve = Some(Arc::new(ArrayQueue::new(MAX_ARENAS))); in next_arena()
341 let reserve = self.reserve.as_ref().unwrap(); in next_arena() localVariable
343 reserve in next_arena()
[all …]

12345678910>>...394