| /third_party/ulib/lz4/ |
| A D | lz4-fuzztest.cpp | 31 assert(dstSize > 0); in LLVMFuzzerTestOneInput() 32 assert(dstSize <= static_cast<int>(kMaxBufSize)); in LLVMFuzzerTestOneInput() 36 assert(compressedSize > 0); in LLVMFuzzerTestOneInput() 41 assert(decompressedSize == srcSize); in LLVMFuzzerTestOneInput() 42 assert(memcmp(data, decompressedData, size) == 0); in LLVMFuzzerTestOneInput()
|
| /third_party/ulib/jemalloc/include/jemalloc/internal/ |
| A D | bitmap_inlines.h | 38 assert(bit < binfo->nbits); in bitmap_get() 51 assert(bit < binfo->nbits); in bitmap_set() 52 assert(!bitmap_get(bitmap, binfo, bit)); in bitmap_set() 56 assert(g & (ZU(1) << (bit & BITMAP_GROUP_NBITS_MASK))); in bitmap_set() 59 assert(bitmap_get(bitmap, binfo, bit)); in bitmap_set() 69 assert(g & (ZU(1) << (bit & BITMAP_GROUP_NBITS_MASK))); in bitmap_set() 87 assert(!bitmap_full(bitmap, binfo)); in bitmap_sfu() 119 assert(bit < binfo->nbits); in bitmap_unset() 120 assert(bitmap_get(bitmap, binfo, bit)); in bitmap_unset() 128 assert(!bitmap_get(bitmap, binfo, bit)); in bitmap_unset() [all …]
|
| A D | arena_inlines_b.h | 29 assert(binind < NBINS); in arena_bin_index() 37 assert(ptr != NULL); in arena_prof_tctx_get() 49 assert(ptr != NULL); in arena_prof_tctx_set() 60 assert(ptr != NULL); in arena_prof_tctx_reset() 61 assert(!extent_slab_get(extent)); in arena_prof_tctx_reset() 94 assert(!tsdn_null(tsdn) || tcache == NULL); in arena_malloc() 95 assert(size != 0); in arena_malloc() 107 assert(size > tcache_maxclass); in arena_malloc() 125 assert(ptr != NULL); in arena_salloc() 140 assert(ptr != NULL); in arena_dalloc() [all …]
|
| A D | prng_inlines.h | 49 assert(lg_range > 0); in prng_lg_range_u32() 50 assert(lg_range <= 32); in prng_lg_range_u32() 74 assert(lg_range > 0); in prng_lg_range_u64() 75 assert(lg_range <= 64); in prng_lg_range_u64() 89 assert(lg_range > 0); in prng_lg_range_zu() 90 assert(lg_range <= ZU(1) << (3 + LG_SIZEOF_PTR)); in prng_lg_range_zu() 114 assert(range > 1); in prng_range_u32() 133 assert(range > 1); in prng_range_u64() 152 assert(range > 1); in prng_range_zu()
|
| A D | prof_inlines.h | 70 assert(tdata == NULL || tdata->attached); in prof_tdata_get() 80 assert(ptr != NULL); in prof_tctx_get() 90 assert(ptr != NULL); in prof_tctx_set() 100 assert(ptr != NULL); in prof_tctx_reset() 142 assert(usize == s2u(usize)); in prof_alloc_prep() 161 assert(ptr != NULL); in prof_malloc() 162 assert(usize == isalloc(tsdn, extent, ptr)); in prof_malloc() 180 assert(ptr != NULL || (uintptr_t)tctx <= (uintptr_t)1U); in prof_realloc() 183 assert(usize == isalloc(tsd_tsdn(tsd), extent, ptr)); in prof_realloc() 216 assert((uintptr_t)prof_tctx_get(tsd_tsdn(tsd), extent, ptr) == in prof_realloc() [all …]
|
| A D | rtree_inlines.h | 49 assert(start_level < rtree->height); in rtree_start_level() 62 assert(key_diff != 0); /* Handled in rtree_elm_lookup(). */ in rtree_ctx_start_level() 70 assert(start_level < rtree->height); in rtree_ctx_start_level() 97 assert(!dependent || child != NULL); in rtree_child_tryread() 110 assert(!dependent || child != NULL); in rtree_child_read() 159 assert(!dependent || subtree != NULL); in rtree_subtree_tryread() 171 assert(!dependent || subtree != NULL); in rtree_subtree_read() 183 assert(!dependent || !init_missing); in rtree_elm_lookup() 238 assert(level < (RTREE_HEIGHT_MAX-1)); \ in rtree_elm_lookup() 256 assert(level == (RTREE_HEIGHT_MAX-1)); \ in rtree_elm_lookup() [all …]
|
| A D | tcache_inlines.h | 134 assert(binind < NBINS); in tcache_alloc_small() 137 assert(tcache_success == (ret != NULL)); in tcache_alloc_small() 150 assert(ret); in tcache_alloc_small() 157 assert(tcache_salloc(tsd_tsdn(tsd), ret) == usize); in tcache_alloc_small() 192 assert(binind < nhbins); in tcache_alloc_large() 195 assert(tcache_success == (ret != NULL)); in tcache_alloc_large() 215 assert(usize <= tcache_maxclass); in tcache_alloc_large() 246 assert(tcache_salloc(tsd_tsdn(tsd), ptr) <= SMALL_MAXCLASS); in tcache_dalloc_small() 257 assert(tbin->ncached < tbin_info->ncached_max); in tcache_dalloc_small() 272 assert(tcache_salloc(tsd_tsdn(tsd), ptr) > SMALL_MAXCLASS); in tcache_dalloc_large() [all …]
|
| A D | jemalloc_internal.h | 674 assert(size > 0); in size2index() 761 assert(size > 0); in s2u() 965 assert(ptr != NULL); in iaalloc() 980 assert(ptr != NULL); in isalloc() 991 assert(size != 0); in iallocztm() 1017 assert(usize != 0); in ipallocztm() 1073 assert(ptr != NULL); in idalloctm() 1136 assert(ptr != NULL); in iralloct() 1137 assert(size != 0); in iralloct() 1165 assert(ptr != NULL); in ixalloc() [all …]
|
| A D | util_inlines.h | 126 assert(x != 0); in lg_floor() 132 assert(ret < UINT_MAX); in lg_floor() 141 assert(x != 0); in lg_floor() 150 assert(ret < UINT_MAX); in lg_floor() 157 assert(x != 0); in lg_floor() 171 assert(x != 0); in lg_floor()
|
| A D | assert.h | 5 #ifndef assert 6 #define assert(e) do { \ macro
|
| A D | tsd_inlines.h | 34 assert(tsd != NULL); in tsd_fetch_impl() 45 assert(tsd->state == tsd_state_reincarnated); in tsd_fetch_impl() 85 assert(tsd->state == tsd_state_nominal); \ 109 assert(!tsdn_null(tsdn)); in tsdn_tsd()
|
| A D | extent_inlines.h | 64 assert(extent->e_addr == PAGE_ADDR2BASE(extent->e_addr) || in extent_base_get() 72 assert(extent->e_addr == PAGE_ADDR2BASE(extent->e_addr) || in extent_addr_get() 86 assert(!extent->e_slab); in extent_usize_get() 149 assert(extent->e_slab); in extent_slab_data_get() 156 assert(extent->e_slab); in extent_slab_data_get_const() 182 assert(extent_base_get(extent) == extent_addr_get(extent)); in extent_addr_randomize() 194 assert(ALIGNMENT_ADDR2BASE(extent->e_addr, alignment) == in extent_addr_randomize() 252 assert(addr == PAGE_ADDR2BASE(addr) || !slab); in extent_init()
|
| /third_party/ulib/musl/include/ |
| A D | assert.h | 3 #undef assert 6 #define assert(x) (void)0 macro 8 #define assert(x) ((void)((x) || (__assert_fail(#x, __FILE__, __LINE__, __func__), 0))) macro
|
| /third_party/ulib/jemalloc/src/ |
| A D | bitmap.c | 14 assert(nbits > 0); in bitmap_info_init() 15 assert(nbits <= (ZU(1) << LG_BITMAP_MAXBITS)); in bitmap_info_init() 25 assert(i < BITMAP_MAX_LEVELS); in bitmap_info_init() 32 assert(binfo->levels[i].group_offset <= BITMAP_GROUPS_MAX); in bitmap_info_init() 76 assert(nbits > 0); in bitmap_info_init() 77 assert(nbits <= (ZU(1) << LG_BITMAP_MAXBITS)); in bitmap_info_init()
|
| A D | extent.c | 132 assert(size > 0); in extent_size_quantize_floor() 135 assert(size != 0); in extent_size_quantize_floor() 149 assert(ret <= size); in extent_size_quantize_floor() 168 assert(size > 0); in extent_size_quantize_ceil() 336 assert(!err); in extent_reregister() 445 assert(pad == 0); in extent_recycle() 573 assert(p[i] == 0); in extent_recycle() 591 assert(size != 0); in extent_alloc_core() 817 assert(usize != 0); in extent_alloc_retained() 1158 assert(length != 0); in extent_purge_lazy_default() [all …]
|
| A D | extent_mmap.c | 27 assert(ret != NULL); in extent_alloc_mmap_slow() 52 assert(alignment != 0); in extent_alloc_mmap() 57 assert(new_addr == NULL); in extent_alloc_mmap() 64 assert(ret != NULL); in extent_alloc_mmap()
|
| A D | base.c | 18 assert(size == HUGEPAGE_CEILING(size)); in base_map() 93 assert(size == ALIGNMENT_CEILING(size, alignment)); in base_extent_bump_alloc_helper() 127 assert(base->allocated <= base->resident); in base_extent_bump_alloc_post() 128 assert(base->resident <= base->mapped); in base_extent_bump_alloc_post() 166 assert(block_size >= header_size); in base_block_alloc() 194 assert(base->allocated <= base->resident); in base_extent_alloc() 195 assert(base->resident <= base->mapped); in base_extent_alloc() 238 assert(base->allocated <= base->resident); in base_new() 239 assert(base->resident <= base->mapped); in base_new() 332 assert(base->allocated <= base->resident); in base_stats_get() [all …]
|
| A D | ckh.c | 75 assert(ckh != NULL); in ckh_isearch() 362 assert(minitems > 0); in ckh_new() 363 assert(hash != NULL); in ckh_new() 364 assert(keycomp != NULL); in ckh_new() 414 assert(ckh != NULL); in ckh_delete() 437 assert(ckh != NULL); in ckh_count() 467 assert(ckh != NULL); in ckh_insert() 492 assert(ckh != NULL); in ckh_remove() 523 assert(ckh != NULL); in ckh_search() 546 assert(k1 != NULL); in ckh_string_keycomp() [all …]
|
| A D | nstime.c | 50 assert(UINT64_MAX - time->ns >= addend->ns); in nstime_add() 58 assert(nstime_compare(time, subtrahend) >= 0); in nstime_subtract() 66 assert((((time->ns | multiplier) & (UINT64_MAX << (sizeof(uint64_t) << in nstime_imultiply() 75 assert(divisor != 0); in nstime_idivide() 83 assert(divisor->ns != 0); in nstime_divide()
|
| A D | pages.c | 119 assert(size != 0); in pages_map() 143 assert(ret != NULL); in pages_map() 155 assert(ret == NULL || (addr == NULL && ret != addr) in pages_map() 199 assert(alloc_size >= leadsize + size); in pages_trim() 302 assert(HUGEPAGE_ADDR2BASE(addr) == addr); in pages_huge() 303 assert(HUGEPAGE_CEILING(size) == size); in pages_huge() 315 assert(HUGEPAGE_ADDR2BASE(addr) == addr); in pages_nohuge() 316 assert(HUGEPAGE_CEILING(size) == size); in pages_nohuge()
|
| A D | large.c | 9 assert(usize == s2u(usize)); in large_malloc() 23 assert(!tsdn_null(tsdn) || arena != NULL); in large_palloc() 108 assert(oldusize > usize); in large_ralloc_no_move_shrink() 177 assert(nzero > 0); in large_ralloc_no_move_expand() 198 assert(s2u(extent_usize_get(extent)) == extent_usize_get(extent)); in large_ralloc_no_move() 200 assert(usize_min > 0 && usize_max <= LARGE_MAXCLASS); in large_ralloc_no_move() 202 assert(extent_usize_get(extent) >= LARGE_MINCLASS && usize_max >= in large_ralloc_no_move() 259 assert(usize > 0 && usize <= LARGE_MAXCLASS); in large_ralloc() 261 assert(extent_usize_get(extent) >= LARGE_MINCLASS && usize >= in large_ralloc()
|
| A D | util.c | 5 #define assert(e) do { \ macro 251 assert(base >= 2 && base <= 36); in u2s() 414 assert(!alt_form); in malloc_vsnprintf() 418 assert(!left_justify); in malloc_vsnprintf() 422 assert(!plus_space); in malloc_vsnprintf() 426 assert(!plus_plus); in malloc_vsnprintf() 449 assert(uwidth != UINTMAX_MAX || get_errno() != in malloc_vsnprintf() 472 assert(uprec != UINTMAX_MAX || get_errno() != in malloc_vsnprintf() 544 assert(len == '?' || len == 'l'); in malloc_vsnprintf() 553 assert(len == '?' || len == 'l'); in malloc_vsnprintf() [all …]
|
| /third_party/ulib/musl/sanitizers/ |
| A D | hooks.c | 24 assert(hook == NULL); in __sanitizer_thread_create_hook() 28 assert(hook == NULL); in __sanitizer_thread_start_hook() 32 assert(hook == NULL); in __sanitizer_thread_exit_hook()
|
| /third_party/ulib/uboringssl/crypto/fipsmodule/digest/ |
| A D | digest.c | 97 assert(ctx->pctx == NULL || ctx->pctx_ops != NULL); in EVP_MD_CTX_cleanup() 125 assert(in->pctx == NULL || in->pctx_ops != NULL); in EVP_MD_CTX_copy_ex() 136 assert(in->digest->ctx_size != 0); in EVP_MD_CTX_copy_ex() 159 assert(out->pctx == NULL || out->pctx_ops != NULL); in EVP_MD_CTX_copy_ex() 177 assert(type->ctx_size != 0); in EVP_DigestInit_ex() 189 assert(ctx->pctx == NULL || ctx->pctx_ops != NULL); in EVP_DigestInit_ex() 206 assert(ctx->digest->md_size <= EVP_MAX_MD_SIZE); in EVP_DigestFinal_ex()
|
| /third_party/ulib/jemalloc/test/include/test/ |
| A D | math.h | 23 assert(x > 0.0); in ln_gamma() 60 assert(p > 0.0); in i_gamma() 61 assert(x >= 0.0); in i_gamma() 139 assert(p > 0.0 && p < 1.0); in pt_norm() 160 assert(r > 0.0); in pt_norm() 227 assert(p >= 0.0 && p < 1.0); in pt_chi2() 228 assert(df > 0.0); in pt_chi2()
|