Home
last modified time | relevance | path

Searched refs:fromInt (Results 1 – 18 of 18) sorted by relevance

/third_party/protobuf/js/experimental/runtime/
Dint64_test.js36 const int64 = Int64.fromInt(1);
37 expect(int64.asLong()).toEqual(Long.fromInt(1));
41 const int64 = Int64.fromInt(-1);
44 expect(int64.asLong()).toEqual(Long.fromInt(-1));
48 const int64 = Int64.fromInt(1);
53 const int64 = Int64.fromInt(-1);
70 const int64 = Int64.fromInt(1);
76 const int64 = Int64.fromLong(Long.fromInt(1));
89 expect(() => Int64.fromInt(Number.MAX_SAFE_INTEGER)).toThrow();
93 expect(() => Int64.fromInt(1.5)).toThrow();
[all …]
Dint64.js44 static fromInt(value) { method in Int64
/third_party/protobuf/js/experimental/runtime/kernel/
Dkernel_test.js897 expect(accessor.getFixed64WithDefault(1)).toEqual(Int64.fromInt(0));
902 expect(accessor.getFixed64WithDefault(1, Int64.fromInt(2)))
903 .toEqual(Int64.fromInt(2));
909 expect(accessor.getFixed64WithDefault(1)).toEqual(Int64.fromInt(1));
916 expect(accessor.getFixed64WithDefault(1)).toEqual(Int64.fromInt(2));
933 Kernel.createEmpty().getFixed64WithDefault(-1, Int64.fromInt(1)))
936 expect(Kernel.createEmpty().getFixed64WithDefault(-1, Int64.fromInt(1)))
937 .toEqual(Int64.fromInt(1));
945 accessor.setFixed64(1, Int64.fromInt(2));
946 expect(accessor.getFixed64WithDefault(1)).toEqual(Int64.fromInt(2));
[all …]
Dsint64_test_pairs.js20 longValue: Int64.fromInt(0),
25 longValue: Int64.fromInt(1),
30 longValue: Int64.fromInt(-1),
35 longValue: Int64.fromInt(2),
40 longValue: Int64.fromInt(-2),
Dint64_test_pairs.js20 longValue: Int64.fromInt(0),
25 longValue: Int64.fromInt(1),
30 longValue: Int64.fromInt(-1),
49 longValue: Int64.fromInt(-1),
Dpacked_sfixed64_test_pairs.js23 sfixed64Values: [Int64.fromInt(1)],
29 sfixed64Values: [Int64.fromInt(1), Int64.fromInt(0)],
Dpacked_int64_test_pairs.js23 int64Values: [Int64.fromInt(1)],
28 int64Values: [Int64.fromInt(1), Int64.fromInt(0)],
Dpacked_sint64_test_pairs.js23 sint64Values: [Int64.fromInt(-1)],
28 sint64Values: [Int64.fromInt(-1), Int64.fromInt(0)],
Dsfixed64_test_pairs.js20 longValue: Int64.fromInt(0),
26 longValue: Int64.fromInt(1),
32 longValue: Int64.fromInt(-1),
Dkernel_repeated_test.js1535 const value1 = Int64.fromInt(1);
1536 const value2 = Int64.fromInt(0);
2030 expect(() => accessor.setUnpackedFixed64Element(1, 1, Int64.fromInt(1)))
2037 accessor.setUnpackedFixed64Element(1, 1, Int64.fromInt(1));
2048 expect(() => accessor.setPackedFixed64Element(1, 1, Int64.fromInt(1)))
2055 accessor.setPackedFixed64Element(1, 1, Int64.fromInt(1));
3047 const value1 = Int64.fromInt(1);
3048 const value2 = Int64.fromInt(0);
3468 expect(() => accessor.setUnpackedInt64Element(1, 1, Int64.fromInt(1)))
3475 accessor.setUnpackedInt64Element(1, 1, Int64.fromInt(1));
[all …]
Dkernel_compatibility_test.js221 expect(newAccessor.getSfixed64WithDefault(1)).toEqual(Int64.fromInt(-1));
227 oldAccessor.setSfixed64(1, Int64.fromInt(-1));
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
DIceRegAlloc.cpp342 RegAliases[Reg] = &Target->getAliasesForRegister(RegNumT::fromInt(Reg)); in init()
546 Iter.PreferReg = RegNumT::fromInt(SrcReg); in findRegisterPreference()
773 Iter.Cur->setRegNumTmp(RegNumT::fromInt(MinWeightIndex)); in handleNoFreeRegisters()
DIceOperand.h473 static RegNumT fromInt(BaseType Value) { return RegNumT(Value); } in fromInt() function
540 return RegNumT::fromInt(Current);
DIceTargetLowering.cpp185 const auto RegNum = RegNumT::fromInt(RegIndex); in filterTypeToRegisterSet()
DIceTargetLoweringARM32.cpp331 const auto RegNum = RegNumT::fromInt(i); in staticInit()
1409 Variable *PhysicalRegister = getPhysicalRegister(RegNumT::fromInt(Reg)); in addProlog()
DIceTargetLoweringX8664.cpp1178 const auto RegNum = RegNumT::fromInt(i); in addEpilog()
1189 const auto RegNum = RegNumT::fromInt(i); in addEpilog()
DIceTargetLoweringX8632.cpp1196 const auto RegNum = RegNumT::fromInt(i); in addEpilog()
1207 const auto RegNum = RegNumT::fromInt(i); in addEpilog()
DIceTargetLoweringMIPS32.cpp1578 Variable *PhysicalRegister = getPhysicalRegister(RegNumT::fromInt(Reg)); in addProlog()