Searched refs:fromInt (Results 1 – 18 of 18) sorted by relevance
/third_party/protobuf/js/experimental/runtime/ |
D | int64_test.js | 36 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 …]
|
D | int64.js | 44 static fromInt(value) { method in Int64
|
/third_party/protobuf/js/experimental/runtime/kernel/ |
D | kernel_test.js | 897 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 …]
|
D | sint64_test_pairs.js | 20 longValue: Int64.fromInt(0), 25 longValue: Int64.fromInt(1), 30 longValue: Int64.fromInt(-1), 35 longValue: Int64.fromInt(2), 40 longValue: Int64.fromInt(-2),
|
D | int64_test_pairs.js | 20 longValue: Int64.fromInt(0), 25 longValue: Int64.fromInt(1), 30 longValue: Int64.fromInt(-1), 49 longValue: Int64.fromInt(-1),
|
D | packed_sfixed64_test_pairs.js | 23 sfixed64Values: [Int64.fromInt(1)], 29 sfixed64Values: [Int64.fromInt(1), Int64.fromInt(0)],
|
D | packed_int64_test_pairs.js | 23 int64Values: [Int64.fromInt(1)], 28 int64Values: [Int64.fromInt(1), Int64.fromInt(0)],
|
D | packed_sint64_test_pairs.js | 23 sint64Values: [Int64.fromInt(-1)], 28 sint64Values: [Int64.fromInt(-1), Int64.fromInt(0)],
|
D | sfixed64_test_pairs.js | 20 longValue: Int64.fromInt(0), 26 longValue: Int64.fromInt(1), 32 longValue: Int64.fromInt(-1),
|
D | kernel_repeated_test.js | 1535 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 …]
|
D | kernel_compatibility_test.js | 221 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/ |
D | IceRegAlloc.cpp | 342 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()
|
D | IceOperand.h | 473 static RegNumT fromInt(BaseType Value) { return RegNumT(Value); } in fromInt() function 540 return RegNumT::fromInt(Current);
|
D | IceTargetLowering.cpp | 185 const auto RegNum = RegNumT::fromInt(RegIndex); in filterTypeToRegisterSet()
|
D | IceTargetLoweringARM32.cpp | 331 const auto RegNum = RegNumT::fromInt(i); in staticInit() 1409 Variable *PhysicalRegister = getPhysicalRegister(RegNumT::fromInt(Reg)); in addProlog()
|
D | IceTargetLoweringX8664.cpp | 1178 const auto RegNum = RegNumT::fromInt(i); in addEpilog() 1189 const auto RegNum = RegNumT::fromInt(i); in addEpilog()
|
D | IceTargetLoweringX8632.cpp | 1196 const auto RegNum = RegNumT::fromInt(i); in addEpilog() 1207 const auto RegNum = RegNumT::fromInt(i); in addEpilog()
|
D | IceTargetLoweringMIPS32.cpp | 1578 Variable *PhysicalRegister = getPhysicalRegister(RegNumT::fromInt(Reg)); in addProlog()
|