Searched refs:UNLIKELY (Results 1 - 25 of 81) sorted by relevance

1234

/freebsd-12-stable/sys/contrib/zstd/contrib/pzstd/utils/
H A DLikely.h20 #undef UNLIKELY macro
24 #define UNLIKELY(x) (__builtin_expect((x), 0)) macro
27 #define UNLIKELY(x) (x) macro
H A DRange.h106 if (UNLIKELY(n > size())) {
113 if (UNLIKELY(n > size())) {
120 if (UNLIKELY(first > size())) {
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/scudo/
H A Dscudo_tsd_exclusive.inc38 if (UNLIKELY(ScudoThreadState != ThreadInitialized)) {
H A Dscudo_allocator.cpp147 if (UNLIKELY(NewUnpackedHeader->Checksum !=
168 if (UNLIKELY(!atomic_compare_exchange_strong(
184 if (UNLIKELY(Header.State != ChunkQuarantine))
277 if (UNLIKELY(!GetRandom(reinterpret_cast<void *>(&Cookie), sizeof(Cookie),
291 if (UNLIKELY(!Ptr))
306 if (UNLIKELY(GuardedAlloc.shouldSample())) {
312 if (UNLIKELY(Alignment > MaxAlignment)) {
317 if (UNLIKELY(Alignment < MinAlignment))
324 if (UNLIKELY(Size >= MaxAllowedMallocSize) ||
325 UNLIKELY(AlignedSiz
[all...]
H A Dscudo_tsd_exclusive.cpp57 if (UNLIKELY(MinimalInit))
H A Dscudo_allocator_secondary.h79 if (UNLIKELY(Alignment > MinAlignment))
88 if (UNLIKELY(ReservedBeg == ~static_cast<uptr>(0)))
104 if (UNLIKELY(Alignment > MinAlignment)) {
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_malloc_local.h35 if (UNLIKELY(EarlyMalloc())) { \
43 #define IS_FROM_LOCAL_POOL(ptr) UNLIKELY(IsFromLocalPool(ptr))
H A Dasan_malloc_linux.cpp66 if (UNLIKELY(!CheckPosixMemalignAlignment(alignment)))
111 if (UNLIKELY(UseLocalPool())) {
124 if (UNLIKELY(IsInDlsymAllocPool(ptr))) {
134 if (UNLIKELY(IsInDlsymAllocPool(ptr)))
141 if (UNLIKELY(UseLocalPool()))
150 if (UNLIKELY(UseLocalPool()))
159 if (UNLIKELY(IsInDlsymAllocPool(ptr)))
161 if (UNLIKELY(UseLocalPool()))
224 if (UNLIKELY(UseLocalPool()))
H A Dasan_interceptors_memintrinsics.h83 if (UNLIKELY(!asan_inited)) return internal_memcpy(to, from, size); \
101 if (UNLIKELY(!asan_inited)) return internal_memset(block, c, size); \
114 if (UNLIKELY(!asan_inited)) return internal_memmove(to, from, size); \
/freebsd-12-stable/sys/dev/vmware/vmci/
H A Dvmci_kernel_defs.h23 #define UNLIKELY(_exp) __predict_false(_exp) macro
/freebsd-12-stable/contrib/gcclibs/libmudflap/
H A Dmf-impl.h268 #define UNLIKELY(e) (__builtin_expect (!!(e), 0)) macro
275 do { if (UNLIKELY (__mf_opts.verbose_trace)) { \
280 do { if (UNLIKELY (__mf_opts.trace_mf_calls)) { \
286 do { if (UNLIKELY (__mf_opts.verbose_trace)) { \
291 do { if (UNLIKELY (__mf_opts.trace_mf_calls)) { \
375 if (UNLIKELY (size > 0 && __MF_CACHE_MISS_P (value, size))) \
380 if (UNLIKELY (__mf_starting_p)) \
384 else if (UNLIKELY (__mf_get_state () == reentrant)) \
390 else if (UNLIKELY (__mf_get_state () == in_malloc)) \
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/hwasan/
H A Dhwasan_interceptors.cpp109 if (!ptr || UNLIKELY(IsInDlsymAllocPool(ptr))) return;
115 if (!ptr || UNLIKELY(IsInDlsymAllocPool(ptr))) return;
139 if (UNLIKELY(!hwasan_inited))
147 if (UNLIKELY(IsInDlsymAllocPool(ptr))) {
151 if (UNLIKELY(!hwasan_inited)) {
170 if (UNLIKELY(!hwasan_init_is_running))
172 if (UNLIKELY(!hwasan_inited))
H A Dhwasan_checks.h86 if (UNLIKELY(!PossiblyShortTagMatches(mem_tag, p, 1 << LogSize))) {
104 if (UNLIKELY(ptr_tag != *t)) {
112 if (UNLIKELY(tail_sz != 0 &&
H A Dhwasan_new_delete.cpp35 if (!nothrow && UNLIKELY(!res)) ReportOutOfMemory(size, &stack);\
H A Dhwasan_allocator.cpp124 if (UNLIKELY(!allocated)) {
256 if (UNLIKELY(CheckForCallocOverflow(size, nmemb))) {
307 if (UNLIKELY(CheckForCallocOverflow(size, nmemb))) {
323 if (UNLIKELY(CheckForPvallocOverflow(size, PageSize))) {
335 if (UNLIKELY(!CheckAlignedAllocAlignmentAndSize(alignment, size))) {
345 if (UNLIKELY(!IsPowerOfTwo(alignment))) {
356 if (UNLIKELY(!CheckPosixMemalignAlignment(alignment))) {
362 if (UNLIKELY(!ptr))
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_allocator_local_cache.h37 if (UNLIKELY(c->count == 0)) {
38 if (UNLIKELY(!Refill(c, allocator, class_id)))
55 if (UNLIKELY(c->count == c->max_count))
102 if (UNLIKELY(!allocator->GetFromAllocator(&stats_, class_id, c->chunks,
156 if (UNLIKELY(c->count == 0)) {
157 if (UNLIKELY(!Refill(c, allocator, class_id)))
174 if (UNLIKELY(c->count == c->max_count))
238 if (UNLIKELY(!b))
255 if (UNLIKELY(!b)) {
H A Dsanitizer_allocator_checks.h31 if (UNLIKELY(!ptr))
H A Dsanitizer_allocator_size_class_map.h149 if (UNLIKELY(class_id == kBatchClassID))
159 if (UNLIKELY(size > kMaxSize))
172 if (UNLIKELY(size == 0))
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dcombined.h60 if (UNLIKELY(Header.State != Chunk::State::Quarantined))
83 if (UNLIKELY(!Ptr))
103 if (UNLIKELY(Header.State != Chunk::State::Allocated))
133 if (UNLIKELY(!getRandom(&Cookie, sizeof(Cookie))))
204 if (UNLIKELY(GuardedAlloc.shouldSample())) {
212 if (UNLIKELY(Alignment > MaxAlignment)) {
231 if (UNLIKELY(Size >= MaxAllowedMallocSize)) {
255 if (UNLIKELY(!Block)) {
264 if (UNLIKELY(ZeroContents && ClassId))
272 if (UNLIKELY(UnalignedUserPt
[all...]
H A Dwrappers_c_checks.h24 if (UNLIKELY(!Ptr))
H A Dfuchsia.cpp43 if (UNLIKELY(Status != ZX_OK)) {
81 if (UNLIKELY(Status != ZX_OK)) {
105 if (UNLIKELY(Status != ZX_OK)) {
128 if (UNLIKELY(Status != ZX_OK))
175 if (UNLIKELY(!Buffer || !Length || Length > MaxRandomLength))
H A Dinternal_defs.h43 #define UNLIKELY(X) __builtin_expect(!!(X), 0) macro
73 if (UNLIKELY(!(Expr))) { \
88 if (UNLIKELY(!(V1 Op V2))) { \
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/lsan/
H A Dlsan_allocator.cpp92 if (UNLIKELY(!p)) {
108 if (UNLIKELY(CheckForCallocOverflow(size, nmemb))) {
149 if (UNLIKELY(!CheckPosixMemalignAlignment(alignment))) {
155 if (UNLIKELY(!ptr))
164 if (UNLIKELY(!CheckAlignedAllocAlignmentAndSize(alignment, size))) {
174 if (UNLIKELY(!IsPowerOfTwo(alignment))) {
197 if (UNLIKELY(CheckForCallocOverflow(size, nmemb))) {
217 if (UNLIKELY(CheckForPvallocOverflow(size, PageSize))) {
/freebsd-12-stable/contrib/llvm-project/openmp/runtime/src/
H A Dompt-internal.h116 #define UNLIKELY(x) (x) macro
119 #define UNLIKELY(x) __builtin_expect(!!(x), 0) macro
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/msan/
H A Dmsan_allocator.cpp159 if (UNLIKELY(!allocated)) {
235 if (UNLIKELY(CheckForCallocOverflow(size, nmemb))) {
270 if (UNLIKELY(CheckForCallocOverflow(size, nmemb))) {
285 if (UNLIKELY(CheckForPvallocOverflow(size, PageSize))) {
297 if (UNLIKELY(!CheckAlignedAllocAlignmentAndSize(alignment, size))) {
307 if (UNLIKELY(!IsPowerOfTwo(alignment))) {
318 if (UNLIKELY(!CheckPosixMemalignAlignment(alignment))) {
324 if (UNLIKELY(!ptr))

Completed in 147 milliseconds

1234