Home
last modified time | relevance | path

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

1234

/external/guava/guava-tests/test/com/google/common/primitives/
DIntsTest.java56 assertEquals(((Integer) value).hashCode(), Ints.hashCode(value)); in testHashCode()
62 assertEquals(value, Ints.checkedCast((long) value)); in testCheckedCast()
72 assertEquals(value, Ints.saturatedCast((long) value)); in testSaturatedCast()
74 assertEquals(GREATEST, Ints.saturatedCast(GREATEST + 1L)); in testSaturatedCast()
75 assertEquals(LEAST, Ints.saturatedCast(LEAST - 1L)); in testSaturatedCast()
76 assertEquals(GREATEST, Ints.saturatedCast(Long.MAX_VALUE)); in testSaturatedCast()
77 assertEquals(LEAST, Ints.saturatedCast(Long.MIN_VALUE)); in testSaturatedCast()
82 Ints.checkedCast(value); in assertCastFails()
96 Ints.compare(x, y)); in testCompare()
102 assertFalse(Ints.contains(EMPTY, (int) 1)); in testContains()
[all …]
/external/guava/guava-gwt/test-super/com/google/common/primitives/super/com/google/common/primitives/
DIntsTest.java52 assertEquals(((Integer) value).hashCode(), Ints.hashCode(value)); in testHashCode()
58 assertEquals(value, Ints.checkedCast((long) value)); in testCheckedCast()
68 assertEquals(value, Ints.saturatedCast((long) value)); in testSaturatedCast()
70 assertEquals(GREATEST, Ints.saturatedCast(GREATEST + 1L)); in testSaturatedCast()
71 assertEquals(LEAST, Ints.saturatedCast(LEAST - 1L)); in testSaturatedCast()
72 assertEquals(GREATEST, Ints.saturatedCast(Long.MAX_VALUE)); in testSaturatedCast()
73 assertEquals(LEAST, Ints.saturatedCast(Long.MIN_VALUE)); in testSaturatedCast()
78 Ints.checkedCast(value); in assertCastFails()
92 Ints.compare(x, y)); in testCompare()
98 assertFalse(Ints.contains(EMPTY, (int) 1)); in testContains()
[all …]
/external/llvm/utils/TableGen/
DIntrinsicEmitter.cpp40 void EmitEnumInfo(const std::vector<CodeGenIntrinsic> &Ints,
43 void EmitFnNameRecognizer(const std::vector<CodeGenIntrinsic> &Ints,
45 void EmitIntrinsicToNameTable(const std::vector<CodeGenIntrinsic> &Ints,
47 void EmitIntrinsicToOverloadTable(const std::vector<CodeGenIntrinsic> &Ints,
49 void EmitGenerator(const std::vector<CodeGenIntrinsic> &Ints,
51 void EmitAttributes(const std::vector<CodeGenIntrinsic> &Ints,
53 void EmitModRefBehavior(const std::vector<CodeGenIntrinsic> &Ints,
55 void EmitIntrinsicToGCCBuiltinMap(const std::vector<CodeGenIntrinsic> &Ints,
57 void EmitIntrinsicToMSBuiltinMap(const std::vector<CodeGenIntrinsic> &Ints,
70 std::vector<CodeGenIntrinsic> Ints = LoadIntrinsics(Records, TargetOnly); in run() local
[all …]
/external/clang/lib/AST/
DMicrosoftCXXABI.cpp199 unsigned Ints = 0; in getMSMemberPointerSlots() local
203 Ints = 1; in getMSMemberPointerSlots()
206 Ints++; in getMSMemberPointerSlots()
208 Ints++; in getMSMemberPointerSlots()
210 Ints++; in getMSMemberPointerSlots()
211 return std::make_pair(Ptrs, Ints); in getMSMemberPointerSlots()
219 unsigned Ptrs, Ints; in getMemberPointerWidthAndAlign() local
220 std::tie(Ptrs, Ints) = getMSMemberPointerSlots(MPT); in getMemberPointerWidthAndAlign()
225 uint64_t Width = Ptrs * PtrSize + Ints * IntSize; in getMemberPointerWidthAndAlign()
231 if (Ptrs + Ints > 1 && Target.getTriple().getArch() == llvm::Triple::x86) in getMemberPointerWidthAndAlign()
/external/clang/test/CXX/basic/basic.lookup/basic.lookup.qual/namespace.qual/
Dp2.cpp3 namespace Ints { namespace
16 using namespace Ints;
21 int i = Ints::zero; in test()
22 Ints::f(i); in test()
58 int i = Ints::zero; in test3()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/base/value/
DBaseByteEncodedValue.java34 import com.google.common.primitives.Ints;
58 int res = Ints.compare(getValueType(), o.getValueType()); in compareTo()
60 return Ints.compare(getValue(), ((ByteEncodedValue)o).getValue()); in compareTo()
DBaseIntEncodedValue.java34 import com.google.common.primitives.Ints;
58 int res = Ints.compare(getValueType(), o.getValueType()); in compareTo()
60 return Ints.compare(getValue(), ((IntEncodedValue)o).getValue()); in compareTo()
DBaseNullEncodedValue.java34 import com.google.common.primitives.Ints;
55 return Ints.compare(getValueType(), o.getValueType()); in compareTo()
DBaseEnumEncodedValue.java34 import com.google.common.primitives.Ints;
58 int res = Ints.compare(getValueType(), o.getValueType()); in compareTo()
DBaseTypeEncodedValue.java34 import com.google.common.primitives.Ints;
58 int res = Ints.compare(getValueType(), o.getValueType()); in compareTo()
DBaseStringEncodedValue.java34 import com.google.common.primitives.Ints;
58 int res = Ints.compare(getValueType(), o.getValueType()); in compareTo()
DBaseMethodEncodedValue.java34 import com.google.common.primitives.Ints;
58 int res = Ints.compare(getValueType(), o.getValueType()); in compareTo()
DBaseFieldEncodedValue.java34 import com.google.common.primitives.Ints;
58 int res = Ints.compare(getValueType(), o.getValueType()); in compareTo()
DBaseShortEncodedValue.java34 import com.google.common.primitives.Ints;
59 int res = Ints.compare(getValueType(), o.getValueType()); in compareTo()
DBaseBooleanEncodedValue.java35 import com.google.common.primitives.Ints;
59 int res = Ints.compare(getValueType(), o.getValueType()); in compareTo()
DBaseCharEncodedValue.java35 import com.google.common.primitives.Ints;
59 int res = Ints.compare(getValueType(), o.getValueType()); in compareTo()
DBaseFloatEncodedValue.java34 import com.google.common.primitives.Ints;
58 int res = Ints.compare(getValueType(), o.getValueType()); in compareTo()
DBaseDoubleEncodedValue.java34 import com.google.common.primitives.Ints;
60 int res = Ints.compare(getValueType(), o.getValueType()); in compareTo()
DBaseArrayEncodedValue.java34 import com.google.common.primitives.Ints;
58 int res = Ints.compare(getValueType(), o.getValueType()); in compareTo()
/external/guava/guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/
DInts.java49 public final class Ints { class
50 private Ints() {} in Ints() method in Ints
402 int result = Ints.compare(left[i], right[i]); in compare()
495 && Ints.indexOf(array, (Integer) target, start, end) != -1; in contains()
501 int i = Ints.indexOf(array, (Integer) target, start, end); in indexOf()
512 int i = Ints.lastIndexOf(array, (Integer) target, start, end); in lastIndexOf()
560 result = 31 * result + Ints.hashCode(array[i]); in hashCode()
/external/smali/util/src/main/java/org/jf/util/
DCollectionUtils.java37 import com.google.common.primitives.Ints;
65 int res = Ints.compare(list1.size(), list2.size()); in compareAsList()
117 int res = Ints.compare(list1.size(), list2.size()); in compareAsList()
194 int res = Ints.compare(set1.size(), set2.size());
211 int res = Ints.compare(list1.size(), list2.size());
/external/guava/guava/src/com/google/common/primitives/
DInts.java52 public final class Ints { class
53 private Ints() {} in Ints() method in Ints
456 int result = Ints.compare(left[i], right[i]); in compare()
549 && Ints.indexOf(array, (Integer) target, start, end) != -1; in contains()
555 int i = Ints.indexOf(array, (Integer) target, start, end); in indexOf()
566 int i = Ints.lastIndexOf(array, (Integer) target, start, end); in lastIndexOf()
614 result = 31 * result + Ints.hashCode(array[i]); in hashCode()
/external/guava/guava/src/com/google/common/io/
DLittleEndianDataInputStream.java21 import com.google.common.primitives.Ints;
103 return Ints.fromBytes((byte) 0, (byte) 0, b2, b1); in readUnsignedShort()
121 return Ints.fromBytes( b4, b3, b2, b1); in readInt()
/external/guava/guava/src/com/google/common/collect/
DHashing.java20 import com.google.common.primitives.Ints;
54 private static int MAX_TABLE_SIZE = Ints.MAX_POWER_OF_TWO;
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DTestIntegerSetGenerator.java20 import com.google.common.collect.testing.SampleElements.Ints;
33 return new Ints(); in samples()

1234