Home
last modified time | relevance | path

Searched refs:condition (Results 1 - 25 of 725) sorted by relevance

12345678910>>...29

/third_party/mbedtls/library/
H A Dconstant_time_impl.h113 * This is needed because on Thumb 1, condition flags are always set, so
134 /* Convert a number into a condition in constant time. */
220 static inline mbedtls_ct_uint_t mbedtls_ct_if(mbedtls_ct_condition_t condition, in mbedtls_ct_if() argument
225 asm volatile ("and %x[if1], %x[if1], %x[condition] \n\t" in mbedtls_ct_if()
226 "mvn %x[condition], %x[condition] \n\t" in mbedtls_ct_if()
227 "and %x[condition], %x[condition], %x[if0] \n\t" in mbedtls_ct_if()
228 "orr %x[condition], %x[if1], %x[condition]" in mbedtls_ct_if()
426 mbedtls_ct_size_if(mbedtls_ct_condition_t condition, size_t if1, size_t if0) mbedtls_ct_size_if() argument
433 mbedtls_ct_uint_if(mbedtls_ct_condition_t condition, unsigned if1, unsigned if0) mbedtls_ct_uint_if() argument
440 mbedtls_ct_bool_if(mbedtls_ct_condition_t condition, mbedtls_ct_condition_t if1, mbedtls_ct_condition_t if0) mbedtls_ct_bool_if() argument
450 mbedtls_ct_mpi_uint_if(mbedtls_ct_condition_t condition, mbedtls_mpi_uint if1, mbedtls_mpi_uint if0) mbedtls_ct_mpi_uint_if() argument
461 mbedtls_ct_size_if_else_0(mbedtls_ct_condition_t condition, size_t if1) mbedtls_ct_size_if_else_0() argument
466 mbedtls_ct_uint_if_else_0(mbedtls_ct_condition_t condition, unsigned if1) mbedtls_ct_uint_if_else_0() argument
471 mbedtls_ct_bool_if_else_0(mbedtls_ct_condition_t condition, mbedtls_ct_condition_t if1) mbedtls_ct_bool_if_else_0() argument
479 mbedtls_ct_mpi_uint_if_else_0(mbedtls_ct_condition_t condition, mbedtls_mpi_uint if1) mbedtls_ct_mpi_uint_if_else_0() argument
487 mbedtls_ct_error_if(mbedtls_ct_condition_t condition, int if1, int if0) mbedtls_ct_error_if() argument
499 mbedtls_ct_error_if_else_0(mbedtls_ct_condition_t condition, int if1) mbedtls_ct_error_if_else_0() argument
[all...]
H A Dconstant_time_internal.h254 * condition ? if1 : if0.
256 * \param condition Condition to test.
257 * \param if1 Value to use if \p condition == MBEDTLS_CT_TRUE.
258 * \param if0 Value to use if \p condition == MBEDTLS_CT_FALSE.
260 * \return \c if1 if \p condition == MBEDTLS_CT_TRUE, otherwise \c if0.
262 static inline size_t mbedtls_ct_size_if(mbedtls_ct_condition_t condition,
270 * condition ? if1 : if0.
272 * \param condition Condition to test.
273 * \param if1 Value to use if \p condition == MBEDTLS_CT_TRUE.
274 * \param if0 Value to use if \p condition
[all...]
/third_party/typescript/tests/baselines/reference/
H A DreadonlyPropertySubtypeRelationDirected.js9 function doSomething(condition: boolean) {
12 const three = (condition) ? one : two;
16 // the inferred (displayed?) type of `a` also depends on the order of the condition above. When `one` comes first, the displayed type is `any`
28 function doSomething(condition: boolean) {
31 const three = (condition) ? two : one;
35 // the inferred (displayed?) type of `a` also depends on the order of the condition above. When `one` comes first, the displayed type is `any`
48 function doSomething(condition: boolean) {
51 const three = (condition) ? one : two;
55 // the inferred (displayed?) type of `a` also depends on the order of the condition above. When `one` comes first, the displayed type is `any`
68 function doSomething(condition
[all...]
/third_party/gn/src/base/
H A Dlogging.h58 // The CHECK(condition) macro is active in both debug and release builds and
87 // PCHECK(condition) << "Couldn't do foo";
88 // DPCHECK(condition) << "Couldn't do foo";
210 // the condition doesn't hold. Condition is evaluated once and only once.
211 #define LAZY_STREAM(stream, condition) \
212 !(condition) ? (void)0 : ::logging::LogMessageVoidify() & (stream)
225 #define LOG_IF(severity, condition) \
226 LAZY_STREAM(LOG_STREAM(severity), LOG_IS_ON(severity) && (condition))
228 #define LOG_ASSERT(condition) \
229 LOG_IF(FATAL, !(ANALYZER_ASSUME_TRUE(condition))) \
[all...]
/third_party/node/deps/v8/include/v8-include/cppgc/internal/
H A Dlogging.h24 #define CPPGC_DCHECK_MSG(condition, message) \
26 if (V8_UNLIKELY(!(condition))) { \
31 #define CPPGC_DCHECK_MSG(condition, message) \
33 static_cast<void>(condition), message)>{}))
36 #define CPPGC_DCHECK(condition) CPPGC_DCHECK_MSG(condition, #condition)
38 #define CPPGC_CHECK_MSG(condition, message) \
40 if (V8_UNLIKELY(!(condition))) { \
45 #define CPPGC_CHECK(condition) CPPGC_CHECK_MS
[all...]
/third_party/node/deps/v8/include/cppgc/internal/
H A Dlogging.h24 #define CPPGC_DCHECK_MSG(condition, message) \
26 if (V8_UNLIKELY(!(condition))) { \
31 #define CPPGC_DCHECK_MSG(condition, message) \
33 static_cast<void>(condition), message)>{}))
36 #define CPPGC_DCHECK(condition) CPPGC_DCHECK_MSG(condition, #condition)
38 #define CPPGC_CHECK_MSG(condition, message) \
40 if (V8_UNLIKELY(!(condition))) { \
45 #define CPPGC_CHECK(condition) CPPGC_CHECK_MS
[all...]
/third_party/ltp/tools/sparse/sparse-src/validation/
H A Dcontext.c100 extern int condition, condition2;
105 if(condition) { in good_if1()
115 if(condition) { in good_if2()
124 if(condition) { in good_if3()
134 if(condition) in warn_if1()
143 if(condition) { in warn_if2()
153 while(condition) in good_while1()
160 while(condition) { in good_while2()
168 while(condition) { in good_while3()
202 while(condition) { in warn_while1()
[all...]
/third_party/skia/third_party/externals/dawn/src/common/
H A DAssert.h21 // yet, you should start now!). In debug ASSERT(condition) will trigger an error, otherwise in
44 # define DAWN_ASSERT_CALLSITE_HELPER(file, func, line, condition) \
46 if (!(condition)) { \
47 HandleAssertionFailure(file, func, line, #condition); \
52 # define DAWN_ASSERT_CALLSITE_HELPER(file, func, line, condition) __assume(condition)
54 # define DAWN_ASSERT_CALLSITE_HELPER(file, func, line, condition) __builtin_assume(condition)
56 # define DAWN_ASSERT_CALLSITE_HELPER(file, func, line, condition) \
58 DAWN_UNUSED(sizeof(condition)); \
[all...]
/third_party/python/Tools/clinic/
H A Dcpp.py4 def negate(condition):
8 if condition.startswith('!'):
9 return condition[1:]
10 return "!" + condition
40 " condition=", repr(self.condition()),
44 return str(self.line_number).rjust(4) + ": " + self.condition()
46 def condition(self): member in Monitor
48 Returns the current preprocessor state, as a single #if condition.
50 return " && ".join(condition fo
[all...]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/
H A DSimplifyLoopConditions.cpp27 TIntermTyped *condition = nullptr; member
68 // If we're inside a loop initialization, condition, or expression, we check for expressions that
69 // should be moved out of the loop condition or expression. If one is found, the loop is
71 // If we're not inside loop initialization, condition, or expression, we only need to traverse nodes
142 if (node->getFlowOp() == EOpContinue && (mLoop.condition || mLoop.expression)) in visitBranch()
151 if (mLoop.condition) in visitBranch()
155 CreateTempAssignmentNode(mLoop.conditionVariable, mLoop.condition->deepCopy())); in visitBranch()
166 // Mark that we're inside a loop condition or expression, and determine if the loop needs to be in traverseLoop()
197 mLoop.condition = node->getCondition(); in traverseLoop()
200 // Replace the loop condition wit in traverseLoop()
[all...]
/third_party/vixl/src/
H A Dglobals-vixl.h113 #define VIXL_CHECK(condition) \
115 if (!(condition)) { \
117 oss << "Assertion failed (" #condition ")\nin "; \
133 #define VIXL_CHECK(condition) \
135 if (!(condition)) { \
137 #condition, \
145 #define VIXL_ASSERT(condition) VIXL_CHECK(condition)
155 #define VIXL_ASSERT(condition) ((void)0)
164 #define VIXL_STATIC_ASSERT_LINE(line_unused, condition, messag
[all...]
/third_party/node/deps/v8/src/compiler/
H A Dbranch-elimination.cc64 // Try to use a phi as a branch condition if the control flow from the branch in SimplifyBranchCondition()
67 // use the same branch condition. In such case, create a new phi with constant in SimplifyBranchCondition()
68 // inputs and let the second branch use the phi as its branch condition. From in SimplifyBranchCondition()
72 // condition condition in SimplifyBranchCondition()
129 // Replace the branch condition with the new phi. in SimplifyBranchCondition()
134 Node* condition = node->InputAt(0); in ReduceBranch() local
140 // If we know the condition we can discard the branch. in ReduceBranch()
141 if (from_input.LookupCondition(condition, &branch, &condition_value)) { in ReduceBranch()
158 // the branch condition in ReduceBranch()
188 Node* condition = NodeProperties::GetValueInput(node, 0); TryPullTrapIntoMerge() local
235 Node* condition = node->InputAt(0); ReduceTrapConditional() local
315 Node* condition = NodeProperties::GetValueInput(node, 0); ReduceDeoptimizeConditional() local
358 Node* condition = branch->InputAt(0); ReduceIf() local
444 AddCondition( Zone* zone, Node* condition, Node* branch, bool is_true, ControlPathConditions hint) AddCondition() argument
462 AddConditionInNewBlock( Zone* zone, Node* condition, Node* branch, bool is_true) AddConditionInNewBlock() argument
479 LookupCondition( Node* condition, Node** branch, bool* is_true) const LookupCondition() argument
[all...]
H A Dbranch-elimination.h40 // Represents a condition along with its value in the current control path.
41 // Also stores the node that branched on this condition.
43 BranchCondition() : condition(nullptr), branch(nullptr), is_true(false) {} in BranchCondition()
44 BranchCondition(Node* condition, Node* branch, bool is_true) in BranchCondition()
45 : condition(condition), branch(branch), is_true(is_true) {} in BranchCondition()
46 Node* condition; member
51 return condition == other.condition && branch == other.branch && in operator ==()
60 // as a linked list of condition block
[all...]
/third_party/skia/third_party/externals/libwebp/src/utils/
H A Dthread_utils.c131 static int pthread_cond_destroy(pthread_cond_t* const condition) { in pthread_cond_destroy() argument
134 (void)condition; in pthread_cond_destroy()
136 ok &= (CloseHandle(condition->waiting_sem_) != 0); in pthread_cond_destroy()
137 ok &= (CloseHandle(condition->received_sem_) != 0); in pthread_cond_destroy()
138 ok &= (CloseHandle(condition->signal_event_) != 0); in pthread_cond_destroy()
143 static int pthread_cond_init(pthread_cond_t* const condition, void* cond_attr) { in pthread_cond_init() argument
146 InitializeConditionVariable(condition); in pthread_cond_init()
148 condition->waiting_sem_ = CreateSemaphore(NULL, 0, 1, NULL); in pthread_cond_init()
149 condition->received_sem_ = CreateSemaphore(NULL, 0, 1, NULL); in pthread_cond_init()
150 condition in pthread_cond_init()
161 pthread_cond_signal(pthread_cond_t* const condition) pthread_cond_signal() argument
178 pthread_cond_wait(pthread_cond_t* const condition, pthread_mutex_t* const mutex) pthread_cond_wait() argument
[all...]
/third_party/gn/src/base/mac/
H A Dmac_logging.h55 #define OSSTATUS_LOG_IF(severity, condition, status) \
57 LOG_IS_ON(severity) && (condition))
59 #define OSSTATUS_CHECK(condition, status) \
60 LAZY_STREAM(OSSTATUS_LOG_STREAM(FATAL, status), !(condition)) \
61 << "Check failed: " #condition << ". "
65 #define OSSTATUS_DLOG_IF(severity, condition, status) \
67 DLOG_IS_ON(severity) && (condition))
69 #define OSSTATUS_DCHECK(condition, status) \
71 DCHECK_IS_ON() && !(condition)) \
72 << "Check failed: " #condition << "
[all...]
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/
H A Dsyncgenerator.py38 # <Pipeline Stage, condition as asciidoc string>
40 # <success flag, condition as asciidoc string>
88 if stageinfo.condition is not None:
89 self.pipeline_stage_condition[name] = stageinfo.condition
104 if accessinfo.condition is not None:
105 self.access_flag_condition[name] = accessinfo.condition
119 def isSameConditionPipeline(self, condition, stage):
122 if condition is None:
124 return self.pipeline_stage_condition[stage] == condition
134 condition
[all...]
/third_party/mesa3d/src/mapi/glapi/gen/
H A Dapi_exec_init.py97 # Collect SET_* calls by the condition under which they should
104 condition = apiexec.get_api_condition(f)
105 if not condition:
113 no_error_condition = '_mesa_is_no_error_enabled(ctx) && ({0})'.format(condition)
114 error_condition = '!_mesa_is_no_error_enabled(ctx) && ({0})'.format(condition)
120 settings_by_condition[condition].append(
122 # Print out an if statement for each unique condition, with
124 for condition in sorted(settings_by_condition.keys()):
125 print(' if ({0}) {{'.format(condition))
126 for setting in sorted(settings_by_condition[condition])
[all...]
H A Dapi_vtxfmt_init_h.py45 # Collect SET_* calls by the condition under which they should
53 condition = apiexec.get_api_condition(f)
54 if not condition:
57 if (condition == '_mesa_is_desktop_gl(ctx) || ctx->API == API_OPENGLES2' and
67 settings_by_condition[condition].append(
70 # Print out an if statement for each unique condition, with
72 for condition in sorted(settings_by_condition.keys()):
73 print('if ({0}) {{'.format(condition))
74 for setting in sorted(settings_by_condition[condition]):
/third_party/skia/third_party/externals/spirv-tools/source/opt/
H A Dlog.h25 // Asserts the given condition is true. Otherwise, sends a message to the
29 // SPIRV_ASSERT(<message-consumer>, <condition-expression>);
30 // SPIRV_ASSERT(<message-consumer>, <condition-expression>, <message>);
31 // SPIRV_ASSERT(<message-consumer>, <condition-expression>,
158 #define SPIRV_ASSERT_1(consumer, condition) \
160 if (!(condition)) { \
163 "assertion failed: " #condition); \
168 #define SPIRV_ASSERT_2(consumer, condition, message) \
170 if (!(condition)) { \
178 #define SPIRV_ASSERT_more(consumer, condition, forma
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
H A Dlog.h25 // Asserts the given condition is true. Otherwise, sends a message to the
29 // SPIRV_ASSERT(<message-consumer>, <condition-expression>);
30 // SPIRV_ASSERT(<message-consumer>, <condition-expression>, <message>);
31 // SPIRV_ASSERT(<message-consumer>, <condition-expression>,
158 #define SPIRV_ASSERT_1(consumer, condition) \
160 if (!(condition)) { \
163 "assertion failed: " #condition); \
168 #define SPIRV_ASSERT_2(consumer, condition, message) \
170 if (!(condition)) { \
178 #define SPIRV_ASSERT_more(consumer, condition, forma
[all...]
/third_party/spirv-tools/source/opt/
H A Dlog.h25 // Asserts the given condition is true. Otherwise, sends a message to the
29 // SPIRV_ASSERT(<message-consumer>, <condition-expression>);
30 // SPIRV_ASSERT(<message-consumer>, <condition-expression>, <message>);
31 // SPIRV_ASSERT(<message-consumer>, <condition-expression>,
145 #define SPIRV_ASSERT_1(consumer, condition) \
147 if (!(condition)) { \
150 "assertion failed: " #condition); \
155 #define SPIRV_ASSERT_2(consumer, condition, message) \
157 if (!(condition)) { \
165 #define SPIRV_ASSERT_more(consumer, condition, forma
[all...]
/third_party/fsverity-utils/lib/
H A Dlib_private.h67 libfsverity_warn_on(const char *condition, const char *file, int line);
69 #define WARN_ON(condition) \
71 bool c = (condition); \
74 libfsverity_warn_on(#condition, __FILE__, __LINE__); \
79 libfsverity_bug_on(const char *condition, const char *file, int line);
81 #define BUG_ON(condition) \
83 bool c = (condition); \
86 libfsverity_bug_on(#condition, __FILE__, __LINE__); \
/third_party/FreeBSD/sys/compat/linuxkpi/common/include/linux/
H A Dwait.h47 * In LiteOS, when wait_event is called, if the condition is not true, the task will be blocked and
134 * @brief sleep until a condition gets true.
137 * This API is used to sleep a process until the condition evaluates to true.
138 * The condition is checked each time when the waitqueue wait is woken up.
146 * @param condition [IN] a condition evaluates to true or false.
154 #define wait_event(wait, condition) ({ \
160 while (!(condition)) { \
170 * @brief sleep until a condition gets true or a timeout elapses.
173 * This API is used to sleep a process until the condition evaluate
[all...]
/third_party/icu/vendor/double-conversion/upstream/test/cctest/
H A Dchecks.h60 bool condition) { in CheckHelper()
61 if (!condition) in CheckHelper()
66 // The CHECK macro checks that the given condition is true; if not, it
68 #define CHECK(condition) CheckHelper(__FILE__, __LINE__, #condition, condition)
270 // Causes an error during compilation of the condition is not
286 #define DOUBLE_CONVERSION_ASSERT(condition) CHECK(condition)
290 #define SLOW_DOUBLE_CONVERSION_ASSERT(condition) i
57 CheckHelper(const char* file, int line, const char* source, bool condition) CheckHelper() argument
[all...]
/third_party/skia/third_party/externals/dng_sdk/source/
H A Ddng_assertions.h75 /// \param condition Predicate which must be true.
76 /// \param msg String to display if condition is not true.
78 #define DNG_REQUIRE(condition,msg) \
82 if (!(condition)) \
85 DNG_ASSERT(condition, msg); \
98 /// \param condition Predicate which must be true.
99 /// \param msg String to display if condition is not true.
101 #define DNG_REQUIRE(condition,msg) \
105 if (!(condition)) \

Completed in 11 milliseconds

12345678910>>...29