Home
last modified time | relevance | path

Searched refs:setBit (Results 1 – 25 of 82) sorted by relevance

1234

/external/guava/guava-gwt/test-super/com/google/common/math/super/com/google/common/math/
DBigIntegerMathTest.java79 assertTrue(ZERO.setBit(result).compareTo(x) <= 0); in testLog2Floor()
80 assertTrue(ZERO.setBit(result + 1).compareTo(x) > 0); in testLog2Floor()
89 assertTrue(ZERO.setBit(result).compareTo(x) >= 0); in testLog2Ceiling()
90 assertTrue(result == 0 || ZERO.setBit(result - 1).compareTo(x) < 0); in testLog2Ceiling()
101 assertEquals(x, ZERO.setBit(BigIntegerMath.log2(x, UNNECESSARY))); in testLog2Exact()
114 assertTrue(ZERO.setBit(2 * result + 1).compareTo(x2) > 0); in testLog2HalfUp()
116 assertTrue(result == 0 || ZERO.setBit(2 * result - 1).compareTo(x2) <= 0); in testLog2HalfUp()
125 assertTrue(ZERO.setBit(2 * result + 1).compareTo(x2) >= 0); in testLog2HalfDown()
127 assertTrue(result == 0 || ZERO.setBit(2 * result - 1).compareTo(x2) < 0); in testLog2HalfDown()
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_bvgraph_test.cc83 EXPECT_EQ(target.setBit(idx), s_target.insert(idx).second); in BasicTest()
137 bv.setBit(idx); in RemoveEdges()
173 target.setBit(t0); in Test_isReachable()
174 target.setBit(t1); in Test_isReachable()
252 target.setBit(i); in LongCycle()
272 t7.setBit(7); in ShortestPath()
315 from.setBit(0); in RunAddEdgesTest()
321 from.setBit(1); in RunAddEdgesTest()
326 from.setBit(2); in RunAddEdgesTest()
327 from.setBit(3); in RunAddEdgesTest()
Dsanitizer_bitvector_test.cc82 bv.setBit(5); in TestBitVector()
98 EXPECT_EQ(bv.setBit(bit), s.insert(bit).second); in TestBitVector()
124 bv.setBit(bits[i]); in TestBitVector()
129 bv1.setBit(bits[bv.size() / 2 + i]); in TestBitVector()
/external/guava/guava-tests/test/com/google/common/math/
DBigIntegerMathTest.java57 BigInteger.ZERO.setBit(2 * BigIntegerMath.SQRT2_PRECOMPUTE_THRESHOLD + 1), FLOOR), in testConstantSqrt2PrecomputedBits()
91 assertTrue(ZERO.setBit(result).compareTo(x) <= 0); in testLog2Floor()
92 assertTrue(ZERO.setBit(result + 1).compareTo(x) > 0); in testLog2Floor()
101 assertTrue(ZERO.setBit(result).compareTo(x) >= 0); in testLog2Ceiling()
102 assertTrue(result == 0 || ZERO.setBit(result - 1).compareTo(x) < 0); in testLog2Ceiling()
113 assertEquals(x, ZERO.setBit(BigIntegerMath.log2(x, UNNECESSARY))); in testLog2Exact()
126 assertTrue(ZERO.setBit(2 * result + 1).compareTo(x2) > 0); in testLog2HalfUp()
128 assertTrue(result == 0 || ZERO.setBit(2 * result - 1).compareTo(x2) <= 0); in testLog2HalfUp()
137 assertTrue(ZERO.setBit(2 * result + 1).compareTo(x2) >= 0); in testLog2HalfDown()
139 assertTrue(result == 0 || ZERO.setBit(2 * result - 1).compareTo(x2) < 0); in testLog2HalfDown()
DMathBenchmarking.java72 .setBit(digits); in randomNonNegativeBigInteger()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_bvgraph.h46 return v[from].setBit(to); in addEdge()
56 if (v[node].setBit(to)) in addEdges()
116 visited.setBit(from); in isReachable()
119 if (visited.setBit(idx)) in isReachable()
Dsanitizer_bitvector.h34 bool setBit(uptr idx) { in setBit() function
144 bool setBit(uptr idx) { in setBit() function
150 l1_[i0].setBit(i1); in setBit()
153 bool res = l2_[i0][i1].setBit(i2); in setBit()
188 l1_[i0].setBit(i1); in getAndClearFirstOne()
204 if (l1_[i0].setBit(i1)) in setUnion()
Dsanitizer_deadlock_detector.h63 if (!bv_.setBit(lock_id)) { in addLock()
195 CHECK(recycled_nodes_.setBit(idx)); in removeNode()
/external/pdfium/fxbarcode/datamatrix/
DBC_DefaultPlacement.cpp51 void CBC_DefaultPlacement::setBit(int32_t col, int32_t row, bool bit) { in setBit() function in CBC_DefaultPlacement
94 setBit(m_numcols - 1, m_numrows - 1, true); in place()
95 setBit(m_numcols - 2, m_numrows - 2, true); in place()
112 setBit(col, row, v != 0); in module()
DBC_DefaultPlacement.h23 void setBit(int32_t col, int32_t row, bool bit);
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp451 InputDemandedBits.setBit(SrcBitWidth-1); in SimplifyDemandedUseBits()
648 DemandedMaskIn.setBit(BitWidth-1); in SimplifyDemandedUseBits()
833 UndefElts.setBit(i); in SimplifyDemandedVectorElts()
836 UndefElts.setBit(i); in SimplifyDemandedVectorElts()
940 LeftDemanded.setBit(MaskVal); in SimplifyDemandedVectorElts()
942 RightDemanded.setBit(MaskVal - LHSVWidth); in SimplifyDemandedVectorElts()
961 UndefElts.setBit(i); in SimplifyDemandedVectorElts()
964 UndefElts.setBit(i); in SimplifyDemandedVectorElts()
968 UndefElts.setBit(i); in SimplifyDemandedVectorElts()
973 UndefElts.setBit(i); in SimplifyDemandedVectorElts()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp497 InputDemandedBits.setBit(SrcBitWidth-1); in SimplifyDemandedUseBits()
638 DemandedMaskIn.setBit(BitWidth-1); in SimplifyDemandedUseBits()
716 KnownZero.setBit(KnownZero.getBitWidth() - 1); in SimplifyDemandedUseBits()
940 UndefElts.setBit(i); in SimplifyDemandedVectorElts()
949 UndefElts.setBit(i); in SimplifyDemandedVectorElts()
1033 LeftDemanded.setBit(MaskVal); in SimplifyDemandedVectorElts()
1035 RightDemanded.setBit(MaskVal - LHSVWidth); in SimplifyDemandedVectorElts()
1054 UndefElts.setBit(i); in SimplifyDemandedVectorElts()
1057 UndefElts.setBit(i); in SimplifyDemandedVectorElts()
1061 UndefElts.setBit(i); in SimplifyDemandedVectorElts()
[all …]
/external/llvm/include/llvm/Transforms/IPO/
DWholeProgramDevirt.h75 void setBit(uint64_t Pos, bool b) { in setBit() function
165 TM->Bits->Before.setBit(Pos - 8 * minBeforeBytes(), RetVal); in setBeforeBit()
171 TM->Bits->After.setBit(Pos - 8 * minAfterBytes(), RetVal); in setAfterBit()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/IPO/
DWholeProgramDevirt.h76 void setBit(uint64_t Pos, bool b) { in setBit() function
169 TM->Bits->Before.setBit(Pos - 8 * minBeforeBytes(), RetVal); in setBeforeBit()
175 TM->Bits->After.setBit(Pos - 8 * minAfterBytes(), RetVal); in setAfterBit()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp384 InputDemandedBits.setBit(SrcBitWidth-1); in SimplifyDemandedUseBits()
1069 UndefElts.setBit(i); in SimplifyDemandedVectorElts()
1078 UndefElts.setBit(i); in SimplifyDemandedVectorElts()
1164 LeftDemanded.setBit(MaskVal); in SimplifyDemandedVectorElts()
1166 RightDemanded.setBit(MaskVal - LHSVWidth); in SimplifyDemandedVectorElts()
1189 UndefElts.setBit(i); in SimplifyDemandedVectorElts()
1192 UndefElts.setBit(i); in SimplifyDemandedVectorElts()
1196 UndefElts.setBit(i); in SimplifyDemandedVectorElts()
1205 UndefElts.setBit(i); in SimplifyDemandedVectorElts()
1312 InputDemandedElts.setBit(OutIdx / Ratio); in SimplifyDemandedVectorElts()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/
DX86ShuffleDecodeConstantPool.cpp66 UndefElts.setBit(i); in extractConstantMask()
103 UndefElts.setBit(i); in extractConstantMask()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/
DDHKeyGeneratorHelper.java30 BigInteger x = BigIntegers.createRandomBigInteger(limit, random).setBit(limit - 1); in calculatePrivate()
DDSAParametersGenerator.java261 BigInteger q = U.setBit(0).setBit(N - 1); in generateParameters_FIPS186_3()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/generators/
DDHKeyGeneratorHelper.java31 BigInteger x = BigIntegers.createRandomBigInteger(limit, random).setBit(limit - 1); in calculatePrivate()
DDSAParametersGenerator.java263 BigInteger q = U.setBit(0).setBit(N - 1); in generateParameters_FIPS186_3()
/external/guava/guava-tests/test/com/google/common/primitives/
DUnsignedLongTest.java73 : BigInteger.valueOf(value).add(BigInteger.ZERO.setBit(64)); in testAsUnsignedBigIntegerValue()
262 (a >= 0) ? BigInteger.valueOf(a) : BigInteger.valueOf(a).add(BigInteger.ZERO.setBit(64)); in testEquals()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/zip/
DZipEightByteIntegerTest.java119 assertEquals(BigInteger.valueOf(Long.MAX_VALUE).shiftLeft(1).setBit(0), in testSign()
/external/llvm/lib/Analysis/
DDemandedBits.cpp183 AB.setBit(BitWidth-1); in determineLiveOperandBits()
241 AB.setBit(BitWidth-1); in determineLiveOperandBits()
/external/guava/guava/src/com/google/common/primitives/
DUnsignedLong.java228 bigInt = bigInt.setBit(Long.SIZE - 1); in bigIntegerValue()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/
DZipEightByteInteger.java187 ? val.setBit(LEFTMOST_BIT_SHIFT) : val; in getValue()

1234