Home
last modified time | relevance | path

Searched refs:UNLIKELY (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/libs/androidfw/
DLoadedArsc.cpp113 if (UNLIKELY(entry_offset & 0x03U)) { in VerifyResTableEntry()
119 if (UNLIKELY(entry_offset > std::numeric_limits<uint32_t>::max() - dtohl(type->entriesStart))) { in VerifyResTableEntry()
128 if (UNLIKELY(entry_offset > chunk_size - sizeof(ResTable_entry))) { in VerifyResTableEntry()
135 if (UNLIKELY(!entry)) { in VerifyResTableEntry()
140 if (UNLIKELY(entry_size < sizeof(entry.value()))) { in VerifyResTableEntry()
146 if (UNLIKELY(entry_size > chunk_size || entry_offset > chunk_size - entry_size)) { in VerifyResTableEntry()
154 if (UNLIKELY(entry_offset + entry_size > chunk_size - sizeof(Res_value))) { in VerifyResTableEntry()
161 if (UNLIKELY(!value)) { in VerifyResTableEntry()
166 if (UNLIKELY(value_size < sizeof(Res_value))) { in VerifyResTableEntry()
171 if (UNLIKELY(value_size > chunk_size || entry_offset + entry_size > chunk_size - value_size)) { in VerifyResTableEntry()
[all …]
DAssetManager2.cpp442 if (UNLIKELY(!result.has_value())) { in GetResourceConfigurations()
563 if (UNLIKELY(logging_enabled)) { in FindEntry()
581 if (UNLIKELY(!is_valid_resid(resid))) { in FindEntry()
590 if (UNLIKELY(package_idx == 0xff)) { in FindEntry()
599 if (UNLIKELY(!result.has_value())) { in FindEntry()
616 if (UNLIKELY(logging_enabled)) { in FindEntry()
626 if (UNLIKELY(IsIOError(overlay_result))) { in FindEntry()
645 if (UNLIKELY(logging_enabled)) { in FindEntry()
653 if (UNLIKELY(logging_enabled)) { in FindEntry()
690 if (UNLIKELY(type_spec == nullptr)) { in FindEntryInternal()
[all …]
DAttributeResolution.cpp136 if (UNLIKELY(IsIOError(default_style_bag))) { in ResolveAttrs()
170 if (UNLIKELY(IsIOError(result))) { in ResolveAttrs()
181 if (UNLIKELY(IsIOError(result))) { in ResolveAttrs()
302 if (UNLIKELY(IsIOError(result))) { in ApplyStyle()
313 if (UNLIKELY(IsIOError(result))) { in ApplyStyle()
389 if (UNLIKELY(IsIOError(result))) { in RetrieveAttributes()
DResourceUtils.cpp63 } else if (UNLIKELY(IsIOError(type_str))) { in ToResourceName()
81 } else if (UNLIKELY(IsIOError(entry_str))) { in ToResourceName()
DResourceTypes.cpp712 if (UNLIKELY(!*str)) { in decodeLength()
719 if (UNLIKELY(!*str)) { in decodeLength()
740 if (UNLIKELY(!*str)) { in decodeLength()
747 if (UNLIKELY(!*str)) { in decodeLength()
761 if (UNLIKELY(!offPtr)) { in stringAt()
772 if (UNLIKELY(!u16len.has_value())) { in stringAt()
779 if (UNLIKELY(!nullAddress)) { in stringAt()
788 if (UNLIKELY(!str.verify(*u16len + 1U))) { in stringAt()
803 if (UNLIKELY(!u16len.has_value())) { in stringAt()
808 if (UNLIKELY(!u8len.has_value())) { in stringAt()
[all …]
/frameworks/native/libs/math/include/math/
Dhalf.h29 # define UNLIKELY( exp ) (__builtin_expect( !!(exp), false )) macro
32 # define UNLIKELY( exp ) (__builtin_expect( !!(exp), 0 )) macro
108 if (UNLIKELY(in.getE() == 0xFF)) { // inf or nan in ftoh()
135 if (UNLIKELY(in.getE() == 0x1F)) { // inf or nan in htof()
217 #undef UNLIKELY
DTMatHelpers.h37 # define UNLIKELY( exp ) (__builtin_expect( !!(exp), false )) macro
40 # define UNLIKELY( exp ) (__builtin_expect( !!(exp), 0 )) macro
640 #undef UNLIKELY
/frameworks/base/core/jni/
Dandroid_util_StringBlock.cpp85 } else if (UNLIKELY(!str.has_value())) { in android_content_StringBlock_nativeGetString()
111 if (UNLIKELY(!pos)) { in android_content_StringBlock_nativeGetStyle()
Dcom_android_internal_os_Zygote.cpp2138 if (UNLIKELY(managed_fds_to_close == nullptr)) { in com_android_internal_os_Zygote_nativeForkAndSpecialize()
/frameworks/native/vulkan/libvulkan/
Ddriver_gen.cpp585 #define UNLIKELY(expr) __builtin_expect((expr), 0) macro
591 if (UNLIKELY(required && !data.driver.proc)) { \
Dapi_gen.cpp31 #define UNLIKELY(expr) __builtin_expect((expr), 0) macro
37 if (UNLIKELY(required && !data.dispatch.proc)) { \
/frameworks/native/libs/binder/
DIPCThreadState.cpp712 if (UNLIKELY(mCallRestriction != ProcessState::CallRestriction::NONE)) { in transact()