Home
last modified time | relevance | path

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

/external/mockito/src/test/java/org/mockitousage/matchers/
DCustomMatchersTest.java42 private final class IsZeroOrOne<T extends Number> implements ArgumentMatcher<T> { class in CustomMatchersTest
96 when(mock.oneArg(byteThat(new IsZeroOrOne<Byte>()))).thenReturn("byte"); in shouldUseCustomPrimitiveNumberMatchers()
97 when(mock.oneArg(shortThat(new IsZeroOrOne<Short>()))).thenReturn("short"); in shouldUseCustomPrimitiveNumberMatchers()
98 when(mock.oneArg(intThat(new IsZeroOrOne<Integer>()))).thenReturn("int"); in shouldUseCustomPrimitiveNumberMatchers()
99 when(mock.oneArg(longThat(new IsZeroOrOne<Long>()))).thenReturn("long"); in shouldUseCustomPrimitiveNumberMatchers()
100 when(mock.oneArg(floatThat(new IsZeroOrOne<Float>()))).thenReturn("float"); in shouldUseCustomPrimitiveNumberMatchers()
101 when(mock.oneArg(doubleThat(new IsZeroOrOne<Double>()))).thenReturn("double"); in shouldUseCustomPrimitiveNumberMatchers()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp1778 auto IsZeroOrOne = [](const APInt &C) { in foldOverflowingAddSubSelect() local
1796 if (Pred == ICmpInst::ICMP_SLT && IsZeroOrOne(*C) && in foldOverflowingAddSubSelect()
1803 if (Pred == ICmpInst::ICMP_SGT && IsZeroOrOne(*C + 1) && in foldOverflowingAddSubSelect()
1809 if (Op == X && Pred == ICmpInst::ICMP_SLT && IsZeroOrOne(*C + 1) && in foldOverflowingAddSubSelect()
1814 if (Op == X && Pred == ICmpInst::ICMP_SGT && IsZeroOrOne(*C + 2) && in foldOverflowingAddSubSelect()
1819 if (Op == Y && Pred == ICmpInst::ICMP_SLT && IsZeroOrOne(*C) && in foldOverflowingAddSubSelect()
1824 if (Op == Y && Pred == ICmpInst::ICMP_SGT && IsZeroOrOne(*C + 1) && in foldOverflowingAddSubSelect()
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp1830 auto IsZeroOrOne = [](const APInt &C) { in foldOverflowingAddSubSelect() local
1848 if (Pred == ICmpInst::ICMP_SLT && IsZeroOrOne(*C) && in foldOverflowingAddSubSelect()
1855 if (Pred == ICmpInst::ICMP_SGT && IsZeroOrOne(*C + 1) && in foldOverflowingAddSubSelect()
1861 if (Op == X && Pred == ICmpInst::ICMP_SLT && IsZeroOrOne(*C + 1) && in foldOverflowingAddSubSelect()
1866 if (Op == X && Pred == ICmpInst::ICMP_SGT && IsZeroOrOne(*C + 2) && in foldOverflowingAddSubSelect()
1871 if (Op == Y && Pred == ICmpInst::ICMP_SLT && IsZeroOrOne(*C) && in foldOverflowingAddSubSelect()
1876 if (Op == Y && Pred == ICmpInst::ICMP_SGT && IsZeroOrOne(*C + 1) && in foldOverflowingAddSubSelect()