/third_party/node/lib/internal/util/ |
H A D | comparisons.js | 96 function isEqualBoxedPrimitive(val1, val2) { 97 if (isNumberObject(val1)) { 99 ObjectIs(NumberPrototypeValueOf(val1), 102 if (isStringObject(val1)) { 104 StringPrototypeValueOf(val1) === StringPrototypeValueOf(val2); 106 if (isBooleanObject(val1)) { 108 BooleanPrototypeValueOf(val1) === BooleanPrototypeValueOf(val2); 110 if (isBigIntObject(val1)) { 112 BigIntPrototypeValueOf(val1) === BigIntPrototypeValueOf(val2); 114 if (isSymbolObject(val1)) { [all...] |
/third_party/typescript/tests/baselines/reference/ |
H A D | narrowingAssignmentReadonlyRespectsAssertion.js | 5 readonly val1: T | ReadonlyArray<T>; 15 { val1: "a", val2: ["a", "b", "c"] }, 16 { val1: 2, val2: [1, 2, 3] }, 17 { val1: ["a", "z"], val2: ["x", "y", "z"] }, 18 { val1: [5, 10], val2: [10, 100, 1000] }, 28 fixture.cases.forEach(({ val1, val2 }) => { 29 if (Array.isArray(val1)) { 30 // This should retain val1 as being an array 31 const reversedVal1 = val1.slice().reverse(); 34 console.log(val1); [all...] |
/third_party/elfutils/libdwfl/ |
H A D | frame_unwind.c | 155 Dwarf_Addr val1, val2; in expr_eval() local 203 if (INTUSE (dwfl_frame_reg) (state, op->atom - DW_OP_reg0, &val1) != 0 in expr_eval() 204 || ! push (val1)) in expr_eval() 211 if (INTUSE (dwfl_frame_reg) (state, op->number, &val1) != 0 || ! push (val1)) in expr_eval() 218 if (INTUSE (dwfl_frame_reg) (state, op->atom - DW_OP_breg0, &val1) != 0) in expr_eval() 223 val1 += op->number; in expr_eval() 224 if (! push (val1)) in expr_eval() 231 if (INTUSE (dwfl_frame_reg) (state, op->number, &val1) != 0) in expr_eval() 236 val1 in expr_eval() [all...] |
/third_party/gn/src/base/ |
H A D | logging.h | 407 #define CHECK_OP(name, op, val1, val2) CHECK((val1)op(val2)) 446 #define CHECK_OP(name, op, val1, val2) \ 451 ::logging::Check##name##Impl((val1), (val2), \ 452 #val1 " " #op " " #val2)) \ 567 #define CHECK_EQ(val1, val2) CHECK_OP(EQ, ==, val1, val2) 568 #define CHECK_NE(val1, val2) CHECK_OP(NE, !=, val1, val2) 569 #define CHECK_LE(val1, val [all...] |
/foundation/graphic/graphic_2d/rosen/test/hyper_graphic_manager/unittest/ |
H A D | hgm_lru_cache_test.cpp | 45 constexpr int32_t val1 = 1; in HWTEST_F() local 54 cache.Put(val1); in HWTEST_F() 56 ASSERT_TRUE(cache.Existed(val1)); in HWTEST_F() 60 ASSERT_TRUE(cache.Existed(val1)); in HWTEST_F() 65 ASSERT_TRUE(cache.Existed(val1)); in HWTEST_F() 70 ASSERT_TRUE(cache.Existed(val1)); in HWTEST_F() 74 cache.Put(val1); in HWTEST_F() 75 ASSERT_TRUE(cache.Existed(val1)); in HWTEST_F() 81 ASSERT_TRUE(cache.Existed(val1)); in HWTEST_F()
|
/third_party/mesa3d/src/gtest/include/gtest/ |
H A D | gtest.h | 1586 const T1& val1, const T2& val2, in CmpHelperOpFailure() 1590 << "), actual: " << FormatForComparisonFailureMessage(val1, val2) in CmpHelperOpFailure() 1591 << " vs " << FormatForComparisonFailureMessage(val2, val1); in CmpHelperOpFailure() 1608 const T1& val1, const T2& val2) {\ 1609 if (val1 op val2) {\ 1612 return CmpHelperOpFailure(expr1, expr2, val1, val2, #op);\ 1616 const char* expr1, const char* expr2, BiggestInt val1, BiggestInt val2) 1761 double val1, 2027 #define EXPECT_EQ(val1, val2) \ 2028 EXPECT_PRED_FORMAT2(::testing::internal::EqHelper::Compare, val1, val 1585 CmpHelperOpFailure(const char* expr1, const char* expr2, const T1& val1, const T2& val2, const char* op) CmpHelperOpFailure() argument [all...] |
/third_party/googletest/googletest/include/gtest/ |
H A D | gtest.h | 1433 const T1& val1, const T2& val2, in CmpHelperOpFailure() 1437 << "), actual: " << FormatForComparisonFailureMessage(val1, val2) in CmpHelperOpFailure() 1438 << " vs " << FormatForComparisonFailureMessage(val2, val1); in CmpHelperOpFailure() 1450 const T1& val1, const T2& val2) { \ 1451 if (val1 op val2) { \ 1454 return CmpHelperOpFailure(expr1, expr2, val1, val2, #op); \ 1599 double val1, double val2, 1872 #define EXPECT_EQ(val1, val2) \ 1873 EXPECT_PRED_FORMAT2(::testing::internal::EqHelper::Compare, val1, val2) 1874 #define EXPECT_NE(val1, val 1432 CmpHelperOpFailure(const char* expr1, const char* expr2, const T1& val1, const T2& val2, const char* op) CmpHelperOpFailure() argument [all...] |
/third_party/node/deps/googletest/include/gtest/ |
H A D | gtest.h | 1428 const T1& val1, const T2& val2, in CmpHelperOpFailure() 1432 << "), actual: " << FormatForComparisonFailureMessage(val1, val2) in CmpHelperOpFailure() 1433 << " vs " << FormatForComparisonFailureMessage(val2, val1); in CmpHelperOpFailure() 1445 const T1& val1, const T2& val2) { \ 1446 if (val1 op val2) { \ 1449 return CmpHelperOpFailure(expr1, expr2, val1, val2, #op); \ 1594 double val1, double val2, 1867 #define EXPECT_EQ(val1, val2) \ 1868 EXPECT_PRED_FORMAT2(::testing::internal::EqHelper::Compare, val1, val2) 1869 #define EXPECT_NE(val1, val 1427 CmpHelperOpFailure(const char* expr1, const char* expr2, const T1& val1, const T2& val2, const char* op) CmpHelperOpFailure() argument [all...] |
/third_party/ffmpeg/tests/checkasm/ |
H A D | audiodsp.c | 90 int32_t val1, val2, min, max; in checkasm_check_audiodsp() local 96 val1 = ((int32_t)rnd()); in checkasm_check_audiodsp() 97 val1 = FFSIGN(val1) * (val1 & ((1 << 24) - 1)); in checkasm_check_audiodsp() 101 min = FFMIN(val1, val2); in checkasm_check_audiodsp() 102 max = FFMAX(val1, val2); in checkasm_check_audiodsp() 120 float val1, val2, min, max; in checkasm_check_audiodsp() local 126 val1 = (float)rnd() / (UINT_MAX >> 1) - 1.0f; in checkasm_check_audiodsp() 129 min = FFMIN(val1, val in checkasm_check_audiodsp() [all...] |
/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_netfirewall_test/ |
H A D | suffix_match_trie_test.cpp | 52 int val1 = 101; in HWTEST_F() local 53 trie.Insert(TEST_SUFFIX1, val1); in HWTEST_F() 67 int val1 = 101; in HWTEST_F() local 68 trie.Insert(TEST_SUFFIX1, val1); in HWTEST_F() 79 int val1 = 101; in HWTEST_F() local 81 trie.Insert(TEST_SUFFIX1, val1); in HWTEST_F() 100 int val1 = 101; in HWTEST_F() local 103 trie.Insert(TEST_SUFFIX1, val1); in HWTEST_F()
|
/third_party/skia/src/gpu/tessellate/ |
H A D | CullTest.h | 57 auto val1 = fMatY * p[1].fY; in areVisible3() local 60 val1 = fMatX*p[1].fX + val1; in areVisible3() 65 val0 = skvx::max(val0, val1); in areVisible3() 78 auto val1 = fMatY * p[1].fY; in areVisible4() local 82 val1 = fMatX*p[1].fX + val1; in areVisible4() 88 val0 = skvx::max(val0, val1); in areVisible4()
|
/third_party/node/deps/openssl/openssl/crypto/bn/ |
H A D | bn_exp2.c | 26 BIGNUM *val1[TABLE_SIZE], *val2[TABLE_SIZE]; in BN_mod_exp2_mont() local 51 val1[0] = BN_CTX_get(ctx); in BN_mod_exp2_mont() 69 * Build table for a1: val1[i] := a1^(2*i + 1) mod m for i = 0 .. 2^(window1-1) in BN_mod_exp2_mont() 72 if (!BN_mod(val1[0], a1, m, ctx)) in BN_mod_exp2_mont() 74 a_mod_m = val1[0]; in BN_mod_exp2_mont() 83 if (!BN_to_montgomery(val1[0], a_mod_m, mont, ctx)) in BN_mod_exp2_mont() 86 if (!BN_mod_mul_montgomery(d, val1[0], val1[0], mont, ctx)) in BN_mod_exp2_mont() 91 if (((val1[i] = BN_CTX_get(ctx)) == NULL) || in BN_mod_exp2_mont() 92 !BN_mod_mul_montgomery(val1[ in BN_mod_exp2_mont() [all...] |
/third_party/openssl/crypto/bn/ |
H A D | bn_exp2.c | 26 BIGNUM *val1[TABLE_SIZE], *val2[TABLE_SIZE]; in BN_mod_exp2_mont() local 51 val1[0] = BN_CTX_get(ctx); in BN_mod_exp2_mont() 69 * Build table for a1: val1[i] := a1^(2*i + 1) mod m for i = 0 .. 2^(window1-1) in BN_mod_exp2_mont() 72 if (!BN_mod(val1[0], a1, m, ctx)) in BN_mod_exp2_mont() 74 a_mod_m = val1[0]; in BN_mod_exp2_mont() 83 if (!BN_to_montgomery(val1[0], a_mod_m, mont, ctx)) in BN_mod_exp2_mont() 86 if (!BN_mod_mul_montgomery(d, val1[0], val1[0], mont, ctx)) in BN_mod_exp2_mont() 91 if (((val1[i] = BN_CTX_get(ctx)) == NULL) || in BN_mod_exp2_mont() 92 !BN_mod_mul_montgomery(val1[ in BN_mod_exp2_mont() [all...] |
/third_party/mesa3d/src/egl/main/ |
H A D | eglconfig.c | 605 EGLint val1, val2; in _eglCompareConfigs() local 614 val1 = conf1->ConfigCaveat - conf2->ConfigCaveat; in _eglCompareConfigs() 615 if (val1) in _eglCompareConfigs() 616 return val1; in _eglCompareConfigs() 620 val1 = conf1->ColorBufferType - conf2->ColorBufferType; in _eglCompareConfigs() 621 if (val1) in _eglCompareConfigs() 622 return val1; in _eglCompareConfigs() 625 val1 = val2 = 0; in _eglCompareConfigs() 628 val1 += conf1->RedSize; in _eglCompareConfigs() 632 val1 in _eglCompareConfigs() [all...] |
/foundation/communication/dsoftbus/tests/core/connection/br/ |
H A D | br_mock.cpp | 40 unsigned char val1[4] = {'B', 'a'};
in ActionOfSoftbusGetConfig1() local 41 if (memcpy_s((void *)val, sizeof(int32_t), val1, sizeof(val1)) != EOK) {
in ActionOfSoftbusGetConfig1() 49 unsigned char val1[4] = {1, 0, 0, 0};
in ActionOfSoftbusGetConfig2() local 50 if (memcpy_s((void *)val, sizeof(int32_t), val1, sizeof(val1)) != EOK) {
in ActionOfSoftbusGetConfig2()
|
/foundation/arkui/ace_engine/adapter/preview/external/ability/stage/ |
H A D | stage_pkg_context_info.cpp | 63 std::string val1 = value ? "true" : "false"; in AliasMap() local 64 sonMap.push_back(val1); in AliasMap() 65 pkgAliasMap_.emplace(val1, key); in AliasMap() 67 std::string val1 = item1->GetString(); in AliasMap() local 68 sonMap.push_back(val1); in AliasMap()
|
/third_party/node/deps/v8/third_party/inspector_protocol/crdtp/ |
H A D | protocol_core_test.cc | 172 auto val1 = std::make_unique<TestTypeBasic>(); in TEST() local 173 val1->SetValue("bazzzz"); in TEST() 174 obj1.SetTestTypeBasicField(std::move(val1)); in TEST() 335 auto val1 = std::make_unique<TestTypeBasic>(); in TEST_F() local 336 val1->SetValue("bazzzz"); in TEST_F() 338 vec1.emplace_back(std::move(val1)); in TEST_F() 408 auto val1 = std::make_unique<TestTypeBasic>(); in TEST() local 409 val1->SetValue("bar"); in TEST() 410 obj1.SetTestTypeBasicField(std::move(val1)); in TEST() 456 auto val1 in TEST() local [all...] |
/third_party/ffmpeg/tests/ |
H A D | refcmp-metadata.awk | 9 function max(val1, val2) { 10 return ((val1 >= val2) ? val1 : val2);
|
/third_party/musl/libc-test/src/functionalext/supplement/stdio/ |
H A D | vfscanf.c | 112 int val1 = 0; in vfscanf_0300() local 127 int result = readFile(fp, "%d %d", val1, val2); in vfscanf_0300() 131 if (val1 != 0) { in vfscanf_0300() 132 t_error("%s vfscanf get is %d are not 0\n", __func__, val1); in vfscanf_0300()
|
/third_party/openssl/test/ |
H A D | v3ext.c | 45 ASN1_INTEGER *val1 = NULL, *val2 = NULL; in test_asid() local 55 if (!TEST_ptr(val1 = ASN1_INTEGER_new()) in test_asid() 56 || !TEST_true(ASN1_INTEGER_set_int64(val1, 64496))) in test_asid() 59 if (!TEST_true(X509v3_asid_add_id_or_range(asid1, V3_ASID_ASNUM, val1, NULL))) in test_asid() 62 val1 = NULL; in test_asid() 71 if (!TEST_ptr(val1 = ASN1_INTEGER_new()) in test_asid() 72 || !TEST_true(ASN1_INTEGER_set_int64(val1, 64496)) in test_asid() 81 if (!TEST_true(X509v3_asid_add_id_or_range(asid3, V3_ASID_ASNUM, val1, val2))) in test_asid() 83 val1 = val2 = NULL; in test_asid() 111 ASN1_INTEGER_free(val1); in test_asid() [all...] |
/third_party/ltp/testcases/kernel/syscalls/setsockopt/ |
H A D | setsockopt06.c | 67 int val1 = TPACKET_V1, val3 = TPACKET_V3; in run() local 85 setsockopt(sock, SOL_PACKET, PACKET_VERSION, &val1, in run() 86 sizeof(val1)); in run()
|
/foundation/resourceschedule/ffrt/test/testfunc/ |
H A D | func_pool.cpp | 35 int val1, val2; in NestedFib() local 36 ffrt::submit([&]() { NestedFib(num - 1, val1); }, {}, { &val1 }); in NestedFib() 38 ffrt::wait({ &val1, &val2 }); in NestedFib() 39 count = val1 + val2 + 2; in NestedFib()
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/lang/ |
H A D | UCharacterSurrogateTest.java | 244 int val1 = UCharacter.codePointCount(s.toCharArray(), start, in TestCodePointCount() 247 if (val1 != expected) { in TestCodePointCount() 248 errln("char[] " + str(s, start, limit) + "(" + val1 in TestCodePointCount() 306 int val1 = UCharacter.offsetByCodePoints(chars, start, count, in TestOffsetByCodePoints() 312 if (val1 != expected) { in TestOffsetByCodePoints() 314 + val1 + ") != " + expected); in TestOffsetByCodePoints() 324 val1 = UCharacter.offsetByCodePoints(chars, start, count, in TestOffsetByCodePoints() 329 if (val1 != index) { in TestOffsetByCodePoints() 332 + val1 + ") != " + index); in TestOffsetByCodePoints()
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/ |
H A D | UCharacterSurrogateTest.java | 252 int val1 = UCharacter.codePointCount(s.toCharArray(), start, in TestCodePointCount() 255 if (val1 != expected) { in TestCodePointCount() 256 errln("char[] " + str(s, start, limit) + "(" + val1 in TestCodePointCount() 314 int val1 = UCharacter.offsetByCodePoints(chars, start, count, in TestOffsetByCodePoints() 320 if (val1 != expected) { in TestOffsetByCodePoints() 322 + val1 + ") != " + expected); in TestOffsetByCodePoints() 332 val1 = UCharacter.offsetByCodePoints(chars, start, count, in TestOffsetByCodePoints() 337 if (val1 != index) { in TestOffsetByCodePoints() 340 + val1 + ") != " + index); in TestOffsetByCodePoints()
|
/foundation/multimedia/media_foundation/engine/pipeline/core/ |
H A D | compatible_check.cpp | 52 bool FixInvalDiscCapValCheck(CapabilityID key, const Plugin::ValueType& val1, const Plugin::ValueType& val2, in FixInvalDiscCapValCheck() argument 55 return CapabilityValueCheck<T>(key, {val1, val2}, ALLOW_FIXED | ALLOW_INTERVAL | ALLOW_DISCRETE, in FixInvalDiscCapValCheck() 62 bool FixDiscCapValCheck(CapabilityID key, const Plugin::ValueType& val1, const Plugin::ValueType& val2, in FixDiscCapValCheck() argument 65 return CapabilityValueCheck<T>(key, {val1, val2}, ALLOW_FIXED | ALLOW_DISCRETE, [](T a, T b) { in FixDiscCapValCheck() 101 using CheckFunc = std::function<bool(Capability::Key key, const Plugin::ValueType& val1, const Plugin::ValueType& val2, 161 T Max(T val1, T val2, std::function<int(T, T)> compareFunc) in Max() argument 163 if (compareFunc(val1, val2) >= 0) { in Max() 164 return val1; in Max() 170 T Min(T val1, T val2, std::function<int(T, T)> compareFunc) in Min() argument 172 if (compareFunc(val1, val in Min() [all...] |