Home
last modified time | relevance | path

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

12

/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/native/appdatafwk/src/
H A Dshared_block.cpp117 if (UNLIKELY(ashmem == nullptr)) { in ReadMessageParcel()
122 if (UNLIKELY(!ret)) { in ReadMessageParcel()
128 if (UNLIKELY(block == nullptr)) { in ReadMessageParcel()
148 if (UNLIKELY(mReadOnly)) { in Clear()
168 if (UNLIKELY(mReadOnly)) { in SetColumnNum()
199 if (UNLIKELY(!fieldDirOffset)) { in AllocRow()
318 if (UNLIKELY(end > mSize)) { in PutBlobOrString()
325 if (UNLIKELY(result != EOK)) { in PutBlobOrString()
394 if (UNLIKELY(size <= 0)) { in SetRawData()
398 if (UNLIKELY(size > mSize)) { in SetRawData()
[all …]
/ohos5.0/foundation/arkui/napi/native_engine/
H A Dnative_api_internal.h83 if (UNLIKELY(engine->IsCrossThreadCheckEnabled())) { \
96 if (UNLIKELY(engine->IsCrossThreadCheckEnabled())) { \
110 #ifndef UNLIKELY
111 #define UNLIKELY(exp) (__builtin_expect((exp) != 0, false)) // NOLINT(cppcoreguidelines-macro-usag… macro
H A Dnative_async_work.cpp99 LOG_IF_SPECIAL(UNLIKELY(engine_->IsCrossThreadCheckEnabled()), in Queue()
133 LOG_IF_SPECIAL(UNLIKELY(engine_->IsCrossThreadCheckEnabled()), in QueueWithQos()
167 LOG_IF_SPECIAL(UNLIKELY(engine_->IsCrossThreadCheckEnabled()), in Cancel()
/ohos5.0/base/security/access_token/interfaces/innerkits/nativetoken/src/
H A Dnativetoken_klog.c26 #ifndef UNLIKELY
27 #define UNLIKELY(x) __builtin_expect(!!(x), 0) macro
45 if (UNLIKELY(g_fd < 0)) { in NativeTokenKmsg()
/ohos5.0/base/security/selinux_adapter/interfaces/policycoreutils/src/
H A Dselinux_klog.c27 #ifndef UNLIKELY
28 #define UNLIKELY(x) __builtin_expect(!!(x), 0) macro
55 if (UNLIKELY(g_fd < 0)) { in SelinuxKmsg()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/drawable/
H A Drs_canvas_render_node_drawable.cpp66 if ((UNLIKELY(!uniParam) || uniParam->IsOpDropped()) && GetOpDropped() && in OnDraw()
73 if (UNLIKELY(!singleLocker.IsLocked())) { in OnDraw()
107 if (UNLIKELY(!singleLocker.IsLocked())) { in OnCapture()
H A Drs_effect_render_node_drawable.cpp53 if ((UNLIKELY(!uniParam) || uniParam->IsOpDropped()) && GetOpDropped() && in OnDraw()
66 if (UNLIKELY(!singleLocker.IsLocked())) { in OnDraw()
H A Drs_surface_render_node_drawable.cpp297 if (UNLIKELY(!uniParam)) { in OnDraw()
388 if (UNLIKELY(!singleLocker.IsLocked())) { in OnDraw()
574 if (UNLIKELY(!uniParam)) { in OnCapture()
594 (UNLIKELY(RSUniRenderThread::GetCaptureParam().isMirror_) || in OnCapture()
603 UNLIKELY(RSUniRenderThread::GetCaptureParam().isMirror_)) { in OnCapture()
679 if (UNLIKELY(!uniParams)) { in CaptureSurface()
734 if (UNLIKELY(!singleLocker.IsLocked())) { in CaptureSurface()
H A Drs_display_render_node_drawable.cpp279 if (UNLIKELY(!renderEngine)) { in RequestFrame()
402 … if (UNLIKELY(!drawable || !drawable->GetRenderParams()) || displayNodeId != params.GetId()) { in CheckDisplayNodeSkip()
533 if (UNLIKELY(!renderParams_ || !uniParam)) { in OnDraw()
543 if (UNLIKELY(!drawable || !drawable->GetRenderParams()) || in OnDraw()
845 if (UNLIKELY(!drawable || !drawable->GetRenderParams())) { in OnDraw()
1338 …if (specialLayerType_ != NO_SPECIAL_LAYER || UNLIKELY(RSUniRenderThread::GetCaptureParam().isMirro… in OnCapture()
1347 if (!UNLIKELY(RSUniRenderThread::GetCaptureParam().isMirror_)) { in OnCapture()
1647 if (UNLIKELY(!renderParams_)) { in ClearTransparentBeforeSaveLayer()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/luminance/
H A Drs_luminance_control.cpp74 if (UNLIKELY(extLibHandle_ != nullptr)) { in LoadLibrary()
101 if (UNLIKELY(extLibHandle_ == nullptr)) { in LoadStatusControl()
144 if (UNLIKELY(extLibHandle_ == nullptr)) { in LoadLumControl()
172 if (UNLIKELY(extLibHandle_ == nullptr)) { in LoadTmoControl()
/ohos5.0/foundation/multimodalinput/input/util/common/src/
H A Dklog.cpp42 #define UNLIKELY(x) __builtin_expect(!!(x), 0) macro
64 if (UNLIKELY(g_fd < 0)) { in kMsgLog()
/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/common/
H A Ddfx_define.h75 #ifndef UNLIKELY
76 #define UNLIKELY(exp) (__builtin_expect(!!(exp), false)) macro
/ohos5.0/foundation/arkui/napi/native_engine/impl/ark/
H A Dark_native_reference.cpp116 LOG_IF_SPECIAL(UNLIKELY(engine->IsCrossThreadCheckEnabled()), in Get()
119 LOG_IF_SPECIAL(UNLIKELY(engine->IsCrossThreadCheckEnabled()), in Get()
134 LOG_IF_SPECIAL(UNLIKELY(engine_->IsCrossThreadCheckEnabled()), in Get()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/drawable/dfx/
H A Drs_dirty_rects_dfx.cpp58 if (UNLIKELY(!renderThreadParams)) { in OnDraw()
93 if (UNLIKELY(!renderThreadParams)) { in OnDrawVirtual()
151 if (UNLIKELY(!displayParams_)) { in DrawCurrentRefreshRate()
357 if (UNLIKELY(!displayParams_)) { in DrawTargetSurfaceDirtyRegionForDFX()
362 if (UNLIKELY(!drawable)) { in DrawTargetSurfaceDirtyRegionForDFX()
367 if (UNLIKELY(!surfaceParams) || !surfaceParams->IsAppWindow()) { in DrawTargetSurfaceDirtyRegionForDFX()
/ohos5.0/commonlibrary/ets_utils/js_concurrent_module/common/helper/
H A Dconcurrent_helper.h35 #define UNLIKELY(x) __builtin_expect(!!(x), 0) macro
38 #define UNLIKELY(x) (!!(x)) macro
/ohos5.0/base/startup/init/services/log/
H A Dinit_log.h80 #ifndef UNLIKELY
81 #define UNLIKELY(x) __builtin_expect(!!(x), 0) macro
H A Dinit_log.c78 if (UNLIKELY(g_fd < 0)) { in LogToDmesg()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/parallel_render/
H A Drs_sub_thread_manager.cpp344 if (UNLIKELY(!nodeDrawable)) { in ScheduleRenderNodeDrawable()
349 if (UNLIKELY(!param)) { in ScheduleRenderNodeDrawable()
356 if (UNLIKELY(!rtUniParam)) { in ScheduleRenderNodeDrawable()
391 if (UNLIKELY(!uniParam)) { in ScheduleRenderNodeDrawable()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/drawable/
H A Drs_misc_drawable_test.cpp84 ASSERT_TRUE(UNLIKELY(childOne->GetSharedTransitionParam()));
85 ASSERT_FALSE(UNLIKELY(childTwo->GetSharedTransitionParam()));
86 ASSERT_FALSE(UNLIKELY(childThree->GetSharedTransitionParam()));
/ohos5.0/base/hiviewdfx/faultloggerd/common/dfxlog/
H A Ddfx_log.cpp45 if (UNLIKELY(g_dmesgFd < 0)) { in LogToDmesg()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/
H A Drs_uni_render_thread.cpp357 if (UNLIKELY(!drawable)) { in ReleaseSelfDrawingNodeBuffer()
362 if (UNLIKELY(!params)) { in ReleaseSelfDrawingNodeBuffer()
366 if (UNLIKELY(!surfaceParams)) { in ReleaseSelfDrawingNodeBuffer()
807 if (UNLIKELY(!grContext)) { in PostClearMemoryTask()
/ohos5.0/foundation/arkui/napi/interfaces/inner_api/cjffi/ark_interop/
H A Dark_interop_internal.h115 if (UNLIKELY(!(condition))) { \
/ohos5.0/base/startup/init/services/init/standard/
H A Dfd_holder_service.c62 if (UNLIKELY(errInfo == NULL)) { // Should not happen. in SendErrorInfo()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/drawable/
H A Drs_render_node_drawable_adapter.cpp209 if (UNLIKELY(skipType_ != SkipType::NONE)) { in DrawRangeImpl()
235 if (UNLIKELY(skipType_ != SkipType::NONE)) { in DrawImpl()
279 if (UNLIKELY(!singleLocker.IsLocked())) { in DrawUifirstContentChildren()
/ohos5.0/commonlibrary/ets_utils/js_concurrent_module/taskpool/
H A Dtask_manager.cpp279 if (UNLIKELY(needChecking)) { in CheckForBlockedWorkers()
287 if (UNLIKELY(!isHandleInited_)) { in TryTriggerExpand()
309 if (UNLIKELY(fd == -1)) { in ReadThreadInfo()
548 if (UNLIKELY(suspend_)) { in TryExpand()
577 if (UNLIKELY(needChecking_)) { in RunTaskManager()
906 if (UNLIKELY(suspend_)) { in RestoreWorker()
1327 if (UNLIKELY(worker == nullptr)) { in TerminateTask()

12