Home
last modified time | relevance | path

Searched refs:bucket_size (Results 1 – 25 of 54) sorted by relevance

123

/external/llvm-project/libcxx/test/std/containers/unord/unord.multiset/
Dbucket_size.pass.cpp39 LIBCPP_ASSERT(c.bucket_size(0) == 0); in main()
40 LIBCPP_ASSERT(c.bucket_size(1) == 2); in main()
41 LIBCPP_ASSERT(c.bucket_size(2) == 2); in main()
42 LIBCPP_ASSERT(c.bucket_size(3) == 1); in main()
43 LIBCPP_ASSERT(c.bucket_size(4) == 1); in main()
44 LIBCPP_ASSERT(c.bucket_size(5) == 0); in main()
45 LIBCPP_ASSERT(c.bucket_size(6) == 0); in main()
63 LIBCPP_ASSERT(c.bucket_size(0) == 0); in main()
64 LIBCPP_ASSERT(c.bucket_size(1) == 2); in main()
65 LIBCPP_ASSERT(c.bucket_size(2) == 2); in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.multiset/
Dbucket_size.pass.cpp44 LIBCPP_ASSERT(c.bucket_size(0) == 0); in main()
45 LIBCPP_ASSERT(c.bucket_size(1) == 2); in main()
46 LIBCPP_ASSERT(c.bucket_size(2) == 2); in main()
47 LIBCPP_ASSERT(c.bucket_size(3) == 1); in main()
48 LIBCPP_ASSERT(c.bucket_size(4) == 1); in main()
49 LIBCPP_ASSERT(c.bucket_size(5) == 0); in main()
50 LIBCPP_ASSERT(c.bucket_size(6) == 0); in main()
68 LIBCPP_ASSERT(c.bucket_size(0) == 0); in main()
69 LIBCPP_ASSERT(c.bucket_size(1) == 2); in main()
70 LIBCPP_ASSERT(c.bucket_size(2) == 2); in main()
[all …]
/external/llvm-project/libcxx/test/std/containers/unord/unord.multimap/
Dbucket_size.pass.cpp40 LIBCPP_ASSERT(c.bucket_size(0) == 0); in main()
41 LIBCPP_ASSERT(c.bucket_size(1) == 2); in main()
42 LIBCPP_ASSERT(c.bucket_size(2) == 2); in main()
43 LIBCPP_ASSERT(c.bucket_size(3) == 1); in main()
44 LIBCPP_ASSERT(c.bucket_size(4) == 1); in main()
45 LIBCPP_ASSERT(c.bucket_size(5) == 0); in main()
46 LIBCPP_ASSERT(c.bucket_size(6) == 0); in main()
64 LIBCPP_ASSERT(c.bucket_size(0) == 0); in main()
65 LIBCPP_ASSERT(c.bucket_size(1) == 2); in main()
66 LIBCPP_ASSERT(c.bucket_size(2) == 2); in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.multimap/
Dbucket_size.pass.cpp45 LIBCPP_ASSERT(c.bucket_size(0) == 0); in main()
46 LIBCPP_ASSERT(c.bucket_size(1) == 2); in main()
47 LIBCPP_ASSERT(c.bucket_size(2) == 2); in main()
48 LIBCPP_ASSERT(c.bucket_size(3) == 1); in main()
49 LIBCPP_ASSERT(c.bucket_size(4) == 1); in main()
50 LIBCPP_ASSERT(c.bucket_size(5) == 0); in main()
51 LIBCPP_ASSERT(c.bucket_size(6) == 0); in main()
69 LIBCPP_ASSERT(c.bucket_size(0) == 0); in main()
70 LIBCPP_ASSERT(c.bucket_size(1) == 2); in main()
71 LIBCPP_ASSERT(c.bucket_size(2) == 2); in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.set/
Dbucket_size.pass.cpp44 LIBCPP_ASSERT(c.bucket_size(0) == 0); in main()
45 LIBCPP_ASSERT(c.bucket_size(1) == 1); in main()
46 LIBCPP_ASSERT(c.bucket_size(2) == 1); in main()
47 LIBCPP_ASSERT(c.bucket_size(3) == 1); in main()
48 LIBCPP_ASSERT(c.bucket_size(4) == 1); in main()
65 LIBCPP_ASSERT(c.bucket_size(0) == 0); in main()
66 LIBCPP_ASSERT(c.bucket_size(1) == 1); in main()
67 LIBCPP_ASSERT(c.bucket_size(2) == 1); in main()
68 LIBCPP_ASSERT(c.bucket_size(3) == 1); in main()
69 LIBCPP_ASSERT(c.bucket_size(4) == 1); in main()
[all …]
/external/llvm-project/libcxx/test/std/containers/unord/unord.set/
Dbucket_size.pass.cpp39 LIBCPP_ASSERT(c.bucket_size(0) == 0); in main()
40 LIBCPP_ASSERT(c.bucket_size(1) == 1); in main()
41 LIBCPP_ASSERT(c.bucket_size(2) == 1); in main()
42 LIBCPP_ASSERT(c.bucket_size(3) == 1); in main()
43 LIBCPP_ASSERT(c.bucket_size(4) == 1); in main()
60 LIBCPP_ASSERT(c.bucket_size(0) == 0); in main()
61 LIBCPP_ASSERT(c.bucket_size(1) == 1); in main()
62 LIBCPP_ASSERT(c.bucket_size(2) == 1); in main()
63 LIBCPP_ASSERT(c.bucket_size(3) == 1); in main()
64 LIBCPP_ASSERT(c.bucket_size(4) == 1); in main()
/external/libcxx/test/std/containers/unord/unord.map/
Dbucket_size.pass.cpp45 LIBCPP_ASSERT(c.bucket_size(0) == 0); in main()
46 LIBCPP_ASSERT(c.bucket_size(1) == 1); in main()
47 LIBCPP_ASSERT(c.bucket_size(2) == 1); in main()
48 LIBCPP_ASSERT(c.bucket_size(3) == 1); in main()
49 LIBCPP_ASSERT(c.bucket_size(4) == 1); in main()
67 LIBCPP_ASSERT(c.bucket_size(0) == 0); in main()
68 LIBCPP_ASSERT(c.bucket_size(1) == 1); in main()
69 LIBCPP_ASSERT(c.bucket_size(2) == 1); in main()
70 LIBCPP_ASSERT(c.bucket_size(3) == 1); in main()
71 LIBCPP_ASSERT(c.bucket_size(4) == 1); in main()
[all …]
/external/llvm-project/libcxx/test/std/containers/unord/unord.map/
Dbucket_size.pass.cpp40 LIBCPP_ASSERT(c.bucket_size(0) == 0); in main()
41 LIBCPP_ASSERT(c.bucket_size(1) == 1); in main()
42 LIBCPP_ASSERT(c.bucket_size(2) == 1); in main()
43 LIBCPP_ASSERT(c.bucket_size(3) == 1); in main()
44 LIBCPP_ASSERT(c.bucket_size(4) == 1); in main()
62 LIBCPP_ASSERT(c.bucket_size(0) == 0); in main()
63 LIBCPP_ASSERT(c.bucket_size(1) == 1); in main()
64 LIBCPP_ASSERT(c.bucket_size(2) == 1); in main()
65 LIBCPP_ASSERT(c.bucket_size(3) == 1); in main()
66 LIBCPP_ASSERT(c.bucket_size(4) == 1); in main()
/external/tensorflow/tensorflow/core/kernels/
Dtensor_flag_utils.cc145 Tindices GetLinearBucket(const Tindices value, const Tindices bucket_size) { in GetLinearBucket() argument
147 (value + bucket_size - 1) / bucket_size * bucket_size; in GetLinearBucket()
148 return next_multiple_of_bucket_size - (bucket_size - 1); in GetLinearBucket()
152 Tindices GetPowerBucket(const Tindices value, const Tindices bucket_size) { in GetPowerBucket() argument
153 if (bucket_size == 1) { in GetPowerBucket()
156 return std::pow(bucket_size, std::floor(std::log(bucket_size * (value - 1)) / in GetPowerBucket()
157 std::log(bucket_size)) - in GetPowerBucket()
178 template int32 GetLinearBucket(const int32 value, const int32 bucket_size);
180 template int64 GetLinearBucket(const int64 value, const int64 bucket_size);
182 template int32 GetPowerBucket(const int32 value, const int32 bucket_size);
[all …]
Dtensor_flag_utils.h68 Tindices GetLinearBucket(const Tindices value, const Tindices bucket_size);
73 Tindices GetPowerBucket(const Tindices value, const Tindices bucket_size);
/external/rust/crates/thread_local/src/
Dthread_id.rs57 pub(crate) bucket_size: usize, field
64 let bucket_size = 1 << bucket.saturating_sub(1); in new() localVariable
65 let index = if id != 0 { id ^ bucket_size } else { 0 }; in new()
70 bucket_size, in new()
101 assert_eq!(thread.bucket_size, 1); in test_thread()
107 assert_eq!(thread.bucket_size, 1); in test_thread()
113 assert_eq!(thread.bucket_size, 2); in test_thread()
119 assert_eq!(thread.bucket_size, 2); in test_thread()
125 assert_eq!(thread.bucket_size, 16); in test_thread()
Dlib.rs143 let mut bucket_size = 1; in drop() localVariable
149 let this_bucket_size = bucket_size; in drop()
151 bucket_size <<= 1; in drop()
179 let mut bucket_size = 1; in with_capacity() localVariable
181 *bucket = allocate_bucket::<T>(bucket_size); in with_capacity()
184 bucket_size <<= 1; in with_capacity()
256 let bucket_ptr = allocate_bucket(thread.bucket_size); in insert()
364 bucket_size: usize, field
373 bucket_size: 1, in new()
384 while self.index < self.bucket_size { in next()
[all …]
/external/mesa3d/src/gallium/drivers/nouveau/nv50/
Dnv98_video_bsp.c45 uint32_t slice_size, bucket_size, ring_size, bsp_size; in nv98_decoder_bsp() local
136 nouveau_vp3_inter_sizes(dec, 1, &slice_size, &bucket_size, &ring_size); in nv98_decoder_bsp()
140 PUSH_DATA (push, inter_addr + slice_size + bucket_size); // 408 interdata addr in nv98_decoder_bsp()
148 nouveau_vp3_inter_sizes(dec, desc.h264->slice_count, &slice_size, &bucket_size, &ring_size); in nv98_decoder_bsp()
153 PUSH_DATA (push, inter_addr + slice_size + bucket_size); // 40c interdata addr in nv98_decoder_bsp()
156 PUSH_DATA (push, bucket_size << 8); // 418 bucket size? unshifted.. in nv98_decoder_bsp()
Dnv98_video_vp.c75 uint32_t slice_size, bucket_size, ring_size, i; in nv98_decoder_vp() local
92 nouveau_vp3_inter_sizes(dec, desc.h264->slice_count, &slice_size, &bucket_size, &ring_size); in nv98_decoder_vp()
95 nouveau_vp3_inter_sizes(dec, 1, &slice_size, &bucket_size, &ring_size); in nv98_decoder_vp()
137 PUSH_DATA (push, inter_addr + slice_size + bucket_size); // 718 inter_data_ofs in nv98_decoder_vp()
139 if (bucket_size) { in nv98_decoder_vp()
/external/llvm-project/clang/utils/hmaptool/
Dhmaptool62 bucket_size = struct.calcsize(bucket_fmt)
63 buckets_data = f.read(num_buckets * bucket_size)
64 if len(buckets_data) != num_buckets * bucket_size:
68 buckets_data[i*bucket_size:(i+1)*bucket_size])
216 bucket_size = struct.calcsize(bucket_fmt)
217 strtable_offset = magic_size + header_size + num_buckets * bucket_size
/external/mesa3d/src/gallium/drivers/nouveau/nvc0/
Dnvc0_video_bsp.c142 uint32_t slice_size, bucket_size, ring_size; in nvc0_decoder_bsp_end() local
188 nouveau_vp3_inter_sizes(dec, 1, &slice_size, &bucket_size, &ring_size); in nvc0_decoder_bsp_end()
192 PUSH_DATA (push, inter_addr + slice_size + bucket_size); // 408 interdata addr in nvc0_decoder_bsp_end()
197 nouveau_vp3_inter_sizes(dec, desc.h264->slice_count, &slice_size, &bucket_size, &ring_size); in nvc0_decoder_bsp_end()
202 PUSH_DATA (push, inter_addr + slice_size + bucket_size); // 40c interdata addr in nvc0_decoder_bsp_end()
205 PUSH_DATA (push, bucket_size << 8); // 418 bucket size? unshifted.. in nvc0_decoder_bsp_end()
Dnvc0_video_vp.c75 uint32_t slice_size, bucket_size, ring_size, i; in nvc0_decoder_vp() local
92 nouveau_vp3_inter_sizes(dec, desc.h264->slice_count, &slice_size, &bucket_size, &ring_size); in nvc0_decoder_vp()
95 nouveau_vp3_inter_sizes(dec, 1, &slice_size, &bucket_size, &ring_size); in nvc0_decoder_vp()
137 PUSH_DATA (push, inter_addr + slice_size + bucket_size); // 718 inter_data_ofs in nvc0_decoder_vp()
139 if (bucket_size) { in nvc0_decoder_vp()
/external/mesa3d/src/gallium/drivers/nouveau/
Dnouveau_vp3_video.h192 uint32_t *slice_size, uint32_t *bucket_size, in nouveau_vp3_inter_sizes() argument
197 *bucket_size = 0; in nouveau_vp3_inter_sizes()
199 *bucket_size = mb(dec->base.width) * 3; in nouveau_vp3_inter_sizes()
200 *ring_size = (dec->inter_bo[0]->size >> 8) - *bucket_size - *slice_size; in nouveau_vp3_inter_sizes()
Dnouveau_vp3_video_vp.c33 uint32_t bucket_size; // 24 member
59 uint32_t bucket_size; // 28 member
90 uint32_t bucket_size; // 00 member
118 uint32_t bucket_size; // 28 bucket size member
243 nouveau_vp3_inter_sizes(dec, 1, &ring, &pic_vp->bucket_size, &pic_vp->inter_ring_data_size); in nouveau_vp3_fill_picparm_mpeg12_vp()
284 nouveau_vp3_inter_sizes(dec, 1, &ring, &pic_vp->bucket_size, &pic_vp->inter_ring_data_size); in nouveau_vp3_fill_picparm_mpeg4_vp()
333 nouveau_vp3_inter_sizes(dec, d->slice_count, &ring, &h->bucket_size, &h->inter_ring_data_size); in nouveau_vp3_fill_picparm_h264_vp()
443 nouveau_vp3_inter_sizes(dec, 1, &ring, &vc->bucket_size, &vc->inter_ring_data_size); in nouveau_vp3_fill_picparm_vc1_vp()
/external/ltp/lib/
Dtst_timer_test.c87 unsigned int bucket_size; in frequency_plot() local
96 bucket_size = MAX(1u, ceilu(1.00 * (max_sample - min_sample)/(rows-1))); in frequency_plot()
100 bucket = flooru(1.00 * (samples[i] - min_sample)/bucket_size); in frequency_plot()
129 line_header_len - 3, min_sample + bucket_size*i); in frequency_plot()
149 line_header_len - 5, bucket_size, scale, scale * 2, scale * 4); in frequency_plot()
/external/protobuf/src/google/protobuf/stubs/
Dhash.h86 static const size_t bucket_size = 4;
104 static const size_t bucket_size = 4;
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/
Dbucket_by_sequence_length_test.py406 bucket_size = 10
422 for bucket_start_len in range(min_len, max_len, bucket_size):
426 batch_offsets = range(0, bucket_size, batch_size)
431 bucket_start_len + bucket_size)
456 boundaries = range(min_len + bucket_size + 1, max_len, bucket_size)
/external/rust/crates/plotters/src/coord/ranged1d/combinators/
Dnested.rs86 let bucket_size = (limit.1 - limit.0) / total as i32; in map() localVariable
93 let s_left = limit.0 + bucket_size * idx as i32 + residual.min(idx as i32); in map()
94 let s_right = s_left + bucket_size + if (residual as usize) < idx { 1 } else { 0 }; in map()
/external/tensorflow/tensorflow/core/lib/histogram/
Dhistogram.cc72 if ((proto.bucket_size() != proto.bucket_limit_size()) || in DecodeFromProto()
73 (proto.bucket_size() == 0)) { in DecodeFromProto()
224 if (proto->bucket_size() == 0.0) { in EncodeToProto()
/external/llvm-project/libcxx/test/libcxx/containers/unord/unord.set/
Dbucket_size.pass.cpp30 (void) c.bucket_size(3); in main()

123