Searched refs:IsZeroOrOne (Results 1 – 3 of 3) sorted by relevance
42 private final class IsZeroOrOne<T extends Number> implements ArgumentMatcher<T> { class in CustomMatchersTest96 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()
1778 auto IsZeroOrOne = [](const APInt &C) { in foldOverflowingAddSubSelect() local1796 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()
1830 auto IsZeroOrOne = [](const APInt &C) { in foldOverflowingAddSubSelect() local1848 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()