Home
last modified time | relevance | path

Searched refs:debug_assert (Results 1 – 25 of 372) sorted by relevance

12345678910>>...15

/external/rust/crates/base64/src/read/
Ddecoder.rs91 debug_assert!(self.decoded_len > 0); in flush_decoded_buf()
92 debug_assert!(buf.len() > 0); in flush_decoded_buf()
95 debug_assert!(copy_len > 0); in flush_decoded_buf()
96 debug_assert!(copy_len <= self.decoded_len); in flush_decoded_buf()
105 debug_assert!(self.decoded_len < DECODED_CHUNK_SIZE); in flush_decoded_buf()
114 debug_assert!(self.b64_offset + self.b64_len < BUF_SIZE); in read_from_delegate()
121 debug_assert!(self.b64_offset + self.b64_len <= BUF_SIZE); in read_from_delegate()
131 debug_assert!(self.b64_len >= num_bytes); in decode_to_buf()
132 debug_assert!(self.b64_offset + self.b64_len <= BUF_SIZE); in decode_to_buf()
133 debug_assert!(buf.len() > 0); in decode_to_buf()
[all …]
/external/rust/crates/vulkano/src/command_buffer/
Dsys.rs338 debug_assert!( in bind_descriptor_sets()
364 debug_assert!(inner.offset < inner.buffer.size()); in bind_index_buffer()
365 debug_assert!(inner.buffer.usage().index_buffer); in bind_index_buffer()
424 debug_assert!({ in bind_vertex_buffers()
461 debug_assert!( in copy_image()
468 debug_assert!( in copy_image()
477 debug_assert!(source.image.usage().transfer_source); in copy_image()
478 debug_assert!( in copy_image()
484 debug_assert!(destination.image.usage().transfer_destination); in copy_image()
485 debug_assert!( in copy_image()
[all …]
/external/rust/crates/ryu/src/
Dcommon.rs27 debug_assert!(v < 1000000000); in decimal_length9()
57 debug_assert!(e >= 0); in log2_pow5()
58 debug_assert!(e <= 3528); in log2_pow5()
68 debug_assert!(e >= 0); in pow5bits()
69 debug_assert!(e <= 3528); in pow5bits()
83 debug_assert!(e >= 0); in log10_pow2()
84 debug_assert!(e <= 1650); in log10_pow2()
92 debug_assert!(e >= 0); in log10_pow5()
93 debug_assert!(e <= 2620); in log10_pow5()
Dd2s_small_table.rs104 debug_assert!(base < DOUBLE_POW5_SPLIT2.len() as u32); in compute_pow5()
109 debug_assert!(offset < DOUBLE_POW5_TABLE.len() as u32); in compute_pow5()
114 debug_assert!(i / 16 < POW5_OFFSETS.len() as u32); in compute_pow5()
127 debug_assert!(base < DOUBLE_POW5_INV_SPLIT2.len() as u32); in compute_inv_pow5()
132 debug_assert!(offset < DOUBLE_POW5_TABLE.len() as u32); in compute_inv_pow5()
137 debug_assert!(base < POW5_INV_OFFSETS.len() as u32); in compute_inv_pow5()
Df2s_intrinsics.rs30 debug_assert!(value != 0); in pow5factor_32()
59 debug_assert!(shift > 32); in mul_shift_32()
70 debug_assert!(shifted_sum <= u32::max_value() as u64); in mul_shift_32()
89 debug_assert!(q < d2s::DOUBLE_POW5_INV_SPLIT.len() as u32); in mul_pow5_inv_div_pow2()
110 debug_assert!(i < d2s::DOUBLE_POW5_SPLIT.len() as u32); in mul_pow5_div_pow2()
/external/rust/crates/memchr/src/memchr/x86/
Dsse2.rs130 debug_assert!(ptr > start_ptr && end_ptr.sub(VECTOR_SIZE) >= start_ptr); in memchr()
166 debug_assert!(mask != 0); in memchr()
172 debug_assert!(sub(end_ptr, ptr) >= VECTOR_SIZE); in memchr()
180 debug_assert!(sub(end_ptr, ptr) < VECTOR_SIZE); in memchr()
214 debug_assert!(ptr > start_ptr && end_ptr.sub(VECTOR_SIZE) >= start_ptr); in memchr2()
249 debug_assert!(sub(end_ptr, ptr) < VECTOR_SIZE); in memchr2()
289 debug_assert!(ptr > start_ptr && end_ptr.sub(VECTOR_SIZE) >= start_ptr); in memchr3()
332 debug_assert!(sub(end_ptr, ptr) < VECTOR_SIZE); in memchr3()
366 debug_assert!(start_ptr <= ptr && ptr <= end_ptr); in memrchr()
403 debug_assert!(mask != 0); in memrchr()
[all …]
Davx.rs61 debug_assert!(mask != 0); in memchr()
82 debug_assert!(ptr > start_ptr && end_ptr.sub(VECTOR_SIZE) >= start_ptr); in memchr()
104 debug_assert!(sub(end_ptr, ptr) >= VECTOR_SIZE); in memchr()
112 debug_assert!(sub(end_ptr, ptr) < VECTOR_SIZE); in memchr()
170 debug_assert!(ptr > start_ptr && end_ptr.sub(VECTOR_SIZE) >= start_ptr); in memchr2()
195 debug_assert!(sub(end_ptr, ptr) < VECTOR_SIZE); in memchr2()
263 debug_assert!(ptr > start_ptr && end_ptr.sub(VECTOR_SIZE) >= start_ptr); in memchr3()
296 debug_assert!(sub(end_ptr, ptr) < VECTOR_SIZE); in memchr3()
330 debug_assert!(start_ptr <= ptr && ptr <= end_ptr); in memrchr()
367 debug_assert!(mask != 0); in memrchr()
[all …]
/external/rust/crates/bindgen/src/codegen/
Dbitfield_unit.rs20 debug_assert!(index / 8 < self.storage.as_ref().len()); in get_bit()
38 debug_assert!(index / 8 < self.storage.as_ref().len()); in set_bit()
59 debug_assert!(bit_width <= 64); in get()
60 debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); in get()
61 debug_assert!( in get()
84 debug_assert!(bit_width <= 64); in set()
85 debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); in set()
86 debug_assert!( in set()
/external/rust/crates/num-bigint/src/bigint/
Dbits.rs45 debug_assert!(b.len() > a.len() || carry_b == 0); in bitand_pos_neg()
57 debug_assert!(a.len() > b.len() || carry_a == 0); in bitand_neg_pos()
81 debug_assert!(a.len() > b.len() || carry_a == 0); in bitand_neg_neg()
82 debug_assert!(b.len() > a.len() || carry_b == 0); in bitand_neg_neg()
89 debug_assert!(carry_a == 0); in bitand_neg_neg()
98 debug_assert!(carry_b == 0); in bitand_neg_neg()
183 debug_assert!(b.len() > a.len() || carry_b == 0); in bitor_pos_neg()
195 debug_assert!(carry_b == 0); in bitor_pos_neg()
199 debug_assert!(carry_or == 0); in bitor_pos_neg()
212 debug_assert!(a.len() > b.len() || carry_a == 0); in bitor_neg_pos()
[all …]
/external/mesa3d/src/gallium/drivers/freedreno/a5xx/
Dfd5_blitter.c121 debug_assert(info->dst.box.width >= 0); in can_do_blit()
122 debug_assert(info->dst.box.height >= 0); in can_do_blit()
123 debug_assert(info->dst.box.depth >= 0); in can_do_blit()
201 debug_assert(src->layout.cpp == 1); in emit_blit_buffer()
202 debug_assert(dst->layout.cpp == 1); in emit_blit_buffer()
203 debug_assert(info->src.resource->format == info->dst.resource->format); in emit_blit_buffer()
204 debug_assert((sbox->y == 0) && (sbox->height == 1)); in emit_blit_buffer()
205 debug_assert((dbox->y == 0) && (dbox->height == 1)); in emit_blit_buffer()
206 debug_assert((sbox->z == 0) && (sbox->depth == 1)); in emit_blit_buffer()
207 debug_assert((dbox->z == 0) && (dbox->depth == 1)); in emit_blit_buffer()
[all …]
/external/rust/crates/url/src/
Dslicing.rs112 debug_assert!(self.byte_at(self.scheme_end) == b':'); in index()
113 debug_assert!(self.scheme_end + ":".len() as u32 == self.username_end); in index()
124 debug_assert!(self.username_end == self.host_start); in index()
131 debug_assert!(self.byte_at(self.host_start - "@".len() as u32) == b'@'); in index()
134 debug_assert!(self.username_end == self.host_start); in index()
145 debug_assert!(self.byte_at(self.host_end) == b':'); in index()
164 debug_assert!(self.byte_at(q) == b'?'); in index()
178 debug_assert!(self.byte_at(f) == b'#'); in index()
/external/rust/crates/bstr/src/
Dascii.rs75 debug_assert!(ptr > start_ptr); in first_non_ascii_byte_fallback()
76 debug_assert!(ptr_sub(end_ptr, USIZE_BYTES) >= start_ptr); in first_non_ascii_byte_fallback()
106 debug_assert!(maskb != 0); in first_non_ascii_byte_fallback()
142 debug_assert!(ptr > start_ptr); in first_non_ascii_byte_sse2()
143 debug_assert!(end_ptr.sub(VECTOR_SIZE) >= start_ptr); in first_non_ascii_byte_sse2()
179 debug_assert!(mask != 0); in first_non_ascii_byte_sse2()
186 debug_assert!(sub(end_ptr, ptr) >= VECTOR_SIZE); in first_non_ascii_byte_sse2()
205 debug_assert!(start_ptr <= ptr); in first_non_ascii_byte_slow()
206 debug_assert!(ptr <= end_ptr); in first_non_ascii_byte_slow()
238 debug_assert!(amt < ::core::isize::MAX as usize); in ptr_add()
[all …]
/external/rust/crates/vulkano/src/render_pass/
Drender_pass.rs117 debug_assert!(description.attachments().into_iter().enumerate().all( in new()
178 debug_assert!( in new()
182 debug_assert!(pass in new()
186 debug_assert!( in new()
193 debug_assert!( in new()
201 debug_assert!(pass in new()
214 debug_assert!(pass in new()
228 debug_assert!(offset < attachments.len()); in new()
236 debug_assert!(offset < attachments.len()); in new()
244 debug_assert!(offset < attachments.len()); in new()
[all …]
/external/rust/crates/memchr/src/memmem/
Dgenericsimd.rs118 debug_assert!(needle.len() <= haystack.len()); in fwd_find()
119 debug_assert!( in fwd_find()
124 debug_assert!( in fwd_find()
155 debug_assert!( in fwd_find()
165 debug_assert!( in fwd_find()
170 debug_assert!( in fwd_find()
175 debug_assert!( in fwd_find()
264 debug_assert!(a >= b); in diff()
/external/mesa3d/src/util/
Du_debug_memory.c178 debug_assert(0); in debug_free()
187 debug_assert(0); in debug_free()
242 debug_assert(0); in debug_realloc()
251 debug_assert(0); in debug_realloc()
321 debug_assert(0); in debug_memory_end()
339 debug_assert(0); in debug_memory_end()
368 debug_assert(0); in debug_memory_tag()
393 debug_assert(0); in debug_memory_check_block()
399 debug_assert(0); in debug_memory_check_block()
427 debug_assert(0); in debug_memory_check()
[all …]
/external/rust/crates/memchr/src/memchr/
Dfallback.rs66 debug_assert!(ptr > start_ptr); in memchr()
67 debug_assert!(end_ptr.sub(USIZE_BYTES) >= start_ptr); in memchr()
107 debug_assert!(ptr > start_ptr); in memchr2()
108 debug_assert!(end_ptr.sub(USIZE_BYTES) >= start_ptr); in memchr2()
149 debug_assert!(ptr > start_ptr); in memchr3()
150 debug_assert!(end_ptr.sub(USIZE_BYTES) >= start_ptr); in memchr3()
188 debug_assert!(start_ptr <= ptr && ptr <= end_ptr); in memrchr()
228 debug_assert!(start_ptr <= ptr && ptr <= end_ptr); in memrchr2()
269 debug_assert!(start_ptr <= ptr && ptr <= end_ptr); in memrchr3()
293 debug_assert!(start_ptr <= ptr); in forward_search()
[all …]
/external/rust/crates/rayon-core/src/sleep/
Dcounters.rs147 debug_assert!( in sub_inactive_thread()
152 debug_assert!( in sub_inactive_thread()
173 debug_assert!( in sub_sleeping_thread()
178 debug_assert!( in sub_sleeping_thread()
189 debug_assert!( in try_add_sleeping_thread()
194 debug_assert!( in try_add_sleeping_thread()
246 debug_assert!( in awake_but_idle_threads()
/external/mesa3d/src/gallium/drivers/freedreno/a6xx/
Dfd6_blitter.c200 debug_assert(!util_format_is_compressed(info->src.format)); in can_do_blit()
201 debug_assert(!util_format_is_compressed(info->dst.format)); in can_do_blit()
207 debug_assert(info->dst.box.width >= 0); in can_do_blit()
208 debug_assert(info->dst.box.height >= 0); in can_do_blit()
209 debug_assert(info->dst.box.depth >= 0); in can_do_blit()
326 debug_assert(src->layout.cpp == 1); in emit_blit_buffer()
327 debug_assert(dst->layout.cpp == 1); in emit_blit_buffer()
328 debug_assert(info->src.resource->format == info->dst.resource->format); in emit_blit_buffer()
329 debug_assert((sbox->y == 0) && (sbox->height == 1)); in emit_blit_buffer()
330 debug_assert((dbox->y == 0) && (dbox->height == 1)); in emit_blit_buffer()
[all …]
/external/rust/crates/tokio/src/time/driver/wheel/
Dstack.rs32 debug_assert!((*entry.next_stack.get()).is_none()); in push()
33 debug_assert!((*entry.prev_stack.get()).is_null()); in push()
36 debug_assert!({ in push()
75 debug_assert!({ in remove()
82 debug_assert!(!contains); in remove()
/external/rust/crates/minimal-lexical/src/
Dstackvec.rs49 debug_assert!(len <= 0xffff); in set_len()
50 debug_assert!(len <= bigint::BIGINT_LIMBS); in set_len()
79 debug_assert!(self.len() < self.capacity()); in push_unchecked()
106 debug_assert!(!self.is_empty()); in pop_unchecked()
133 debug_assert!(self.len() + slc.len() <= self.capacity()); in extend_unchecked()
161 debug_assert!(len <= self.capacity()); in truncate_unchecked()
172 debug_assert!(len <= self.capacity()); in resize_unchecked()
Dmask.rs17 debug_assert!(n <= 64, "lower_n_mask() overflow in shl."); in lower_n_mask()
38 debug_assert!(n <= 64, "lower_n_halfway() overflow in shl."); in lower_n_halfway()
58 debug_assert!(n < 64, "nth_bit() overflow in shl."); in nth_bit()
/external/rust/crates/aho-corasick/src/packed/teddy/
Druntime.rs213 debug_assert!(!is_all_zeroes128(cand)); in verify128()
245 debug_assert!(!is_all_zeroes256(cand)); in verify256()
278 debug_assert!(!is_all_zeroes256(cand)); in verify_fat256()
341 debug_assert!(bucket_count == 8 || bucket_count == 16); in verify64()
440 debug_assert!(haystack[at..].len() >= teddy.minimum_len()); in find_at()
469 debug_assert!(haystack[at..].len() >= 16); in candidate()
490 debug_assert!(haystack[at..].len() >= teddy.minimum_len()); in find_at()
519 debug_assert!(haystack[at..].len() >= 32); in candidate()
540 debug_assert!(haystack[at..].len() >= teddy.minimum_len()); in find_at()
569 debug_assert!(haystack[at..].len() >= 16); in candidate()
[all …]
/external/rust/crates/serde_json/src/lexical/
Drounding.rs16 debug_assert!(n < bits, "nth_bit() overflow in shl."); in nth_bit()
25 debug_assert!(n <= bits, "lower_n_mask() overflow in shl."); in lower_n_mask()
38 debug_assert!(n <= bits, "lower_n_halfway() overflow in shl."); in lower_n_halfway()
51 debug_assert!(bit <= bits, "internal_n_halfway() overflow in shl."); in internal_n_mask()
52 debug_assert!(n <= bits, "internal_n_halfway() overflow in shl."); in internal_n_mask()
53 debug_assert!(bit >= n, "internal_n_halfway() overflow in sub."); in internal_n_mask()
/external/mesa3d/src/freedreno/ir3/
Dir3_ra.h202 debug_assert(id->cls >= 0); in ra_name()
203 debug_assert(id->cls < total_class_count); /* we shouldn't get arrays here.. */ in ra_name()
205 debug_assert(name < ctx->alloc_count); in ra_name()
215 debug_assert(n == 0); /* split results in a scalar */ in scalar_name()
219 debug_assert(n < (instr->regs_count + 1)); in scalar_name()
224 debug_assert(n == 0); in scalar_name()
305 debug_assert(dst->array.offset < arr->length); in __ra_init_def_itr()
348 debug_assert(reg->array.offset < arr->length); in __ra_init_use_itr()
/external/rust/crates/bstr/src/byteset/
Dscalar.rs46 debug_assert!(ptr > start_ptr); in inv_memchr()
47 debug_assert!(end_ptr.sub(USIZE_BYTES) >= start_ptr); in inv_memchr()
85 debug_assert!(start_ptr <= ptr && ptr <= end_ptr); in inv_memrchr()
109 debug_assert!(start_ptr <= ptr); in forward_search()
110 debug_assert!(ptr <= end_ptr); in forward_search()
128 debug_assert!(start_ptr <= ptr); in reverse_search()
129 debug_assert!(ptr <= end_ptr); in reverse_search()
147 debug_assert!(a >= b); in sub()

12345678910>>...15