Home
last modified time | relevance | path

Searched refs:Operate (Results 1 – 3 of 3) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/
Djs_bigint.cpp233 JSHandle<BigInt> BigInt::BitwiseOp(JSThread *thread, Operate op, JSHandle<BigInt> x, JSHandle<BigIn… in BitwiseOp()
248 if (op == Operate::OR) { in BitwiseOp()
250 } else if (op == Operate::AND) { in BitwiseOp()
253 ASSERT(op == Operate::XOR); in BitwiseOp()
257 if (op == Operate::OR || op == Operate::XOR) { in BitwiseOp()
302 JSHandle<BigInt> temp = BitwiseOp(thread, Operate::OR, xVal, yVal); in BitwiseAND()
314 return BitwiseOp(thread, Operate::AND, x, y); in BitwiseAND()
320 JSHandle<BigInt> temp = BigInt::BitwiseOp(thread, Operate::XOR, x, yVal); in OneIsNegativeXOR()
332 return BitwiseOp(thread, Operate::XOR, xVal, yVal); in BitwiseXOR()
342 return BitwiseOp(thread, Operate::XOR, x, y); in BitwiseXOR()
[all …]
Djs_bigint.h28 enum class Operate : uint32_t { AND = 0, OR, XOR }; enum
53 …static JSHandle<BigInt> BitwiseOp(JSThread *thread, Operate op, JSHandle<BigInt> x, JSHandle<BigIn…
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_bigint_test.cpp193 JSHandle<BigInt> addOpRes = BigInt::BitwiseOp(thread, Operate::AND, maxSafeIntPlusOne, bigint1); in HWTEST_F_L0()
198 JSHandle<BigInt> addOpRes1 = BigInt::BitwiseOp(thread, Operate::AND, bigint1, bigint2); in HWTEST_F_L0()
203 JSHandle<BigInt> addOpRes2 = BigInt::BitwiseOp(thread, Operate::AND, bigint2, bigint1); in HWTEST_F_L0()
227 … JSHandle<BigInt> orOpRes = BigInt::BitwiseOp(thread, Operate::OR, maxSafeInt, maxSafeIntPlusOne); in HWTEST_F_L0()
244 JSHandle<BigInt> xorOpRes = BigInt::BitwiseOp(thread, Operate::XOR, maxSafeIntPlusOne, bigint1); in HWTEST_F_L0()