Home
last modified time | relevance | path

Searched refs:IsSigned (Results 1 – 25 of 201) sorted by relevance

123456789

/external/pdfium/core/fxcrt/
Dfx_number_unittest.cpp13 EXPECT_FALSE(number.IsSigned()); in TEST()
21 EXPECT_TRUE(number.IsSigned()); in TEST()
28 EXPECT_TRUE(number2.IsSigned()); in TEST()
36 EXPECT_TRUE(number.IsSigned()); in TEST()
43 EXPECT_TRUE(number2.IsSigned()); in TEST()
52 EXPECT_FALSE(number.IsSigned()); in TEST()
57 EXPECT_FALSE(number.IsSigned()); in TEST()
62 EXPECT_FALSE(number.IsSigned()); in TEST()
67 EXPECT_FALSE(number.IsSigned()); in TEST()
73 EXPECT_FALSE(number.IsSigned()); in TEST()
[all …]
/external/libcxx/test/libcxx/numerics/
Dclamp_to_integral.pass.cpp23 const bool IsSigned = std::is_signed<IntT>::value; in test() local
31 {IsSigned ? static_cast<IntT>(-1) : 0, in test()
32 IsSigned ? static_cast<IntT>(-1) : 0, true}, in test()
55 const bool IsSigned = std::is_signed<IntT>::value; in test_float() local
63 {IsSigned ? static_cast<IntT>(-1) : 0, in test_float()
64 IsSigned ? static_cast<IntT>(-1) : 0, true}, in test_float()
/external/clang/lib/Basic/
DTargetInfo.cpp186 unsigned BitWidth, bool IsSigned) const { in getIntTypeByWidth()
188 return IsSigned ? SignedChar : UnsignedChar; in getIntTypeByWidth()
190 return IsSigned ? SignedShort : UnsignedShort; in getIntTypeByWidth()
192 return IsSigned ? SignedInt : UnsignedInt; in getIntTypeByWidth()
194 return IsSigned ? SignedLong : UnsignedLong; in getIntTypeByWidth()
196 return IsSigned ? SignedLongLong : UnsignedLongLong; in getIntTypeByWidth()
201 bool IsSigned) const { in getLeastIntTypeByWidth()
203 return IsSigned ? SignedChar : UnsignedChar; in getLeastIntTypeByWidth()
205 return IsSigned ? SignedShort : UnsignedShort; in getLeastIntTypeByWidth()
207 return IsSigned ? SignedInt : UnsignedInt; in getLeastIntTypeByWidth()
[all …]
/external/clang/lib/CodeGen/
DCGRecordLayout.h75 unsigned IsSigned : 1; member
85 : Offset(), Size(), IsSigned(), StorageSize(), StorageOffset() {} in CGBitFieldInfo()
87 CGBitFieldInfo(unsigned Offset, unsigned Size, bool IsSigned, in CGBitFieldInfo()
89 : Offset(Offset), Size(Size), IsSigned(IsSigned), in CGBitFieldInfo()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp625 bool IsSigned) { in multiplyOverflows() argument
627 Product = IsSigned ? C1.smul_ov(C2, Overflow) : C1.umul_ov(C2, Overflow); in multiplyOverflows()
633 bool IsSigned) { in isMultiple() argument
641 if (IsSigned && C1.isMinSignedValue() && C2.isAllOnesValue()) in isMultiple()
644 APInt Remainder(C1.getBitWidth(), /*Val=*/0ULL, IsSigned); in isMultiple()
645 if (IsSigned) in isMultiple()
659 bool IsSigned = I.getOpcode() == Instruction::SDiv; in commonIDivTransforms() local
679 if ((IsSigned && match(Op0, m_SDiv(m_Value(X), m_APInt(C1)))) || in commonIDivTransforms()
680 (!IsSigned && match(Op0, m_UDiv(m_Value(X), m_APInt(C1))))) { in commonIDivTransforms()
681 APInt Product(C1->getBitWidth(), /*Val=*/0ULL, IsSigned); in commonIDivTransforms()
[all …]
/external/llvm/include/llvm/Transforms/Utils/
DLoopUtils.h93 RecurrenceType(nullptr), IsSigned(false) {} in RecurrenceDescriptor()
99 UnsafeAlgebraInst(UAI), RecurrenceType(RT), IsSigned(Signed) { in RecurrenceDescriptor()
224 Type *RT, bool &IsSigned,
237 bool isSigned() { return IsSigned; } in isSigned()
254 bool IsSigned; variable
/external/llvm/lib/Transforms/Utils/
DSimplifyIndVar.cpp77 bool IsSigned);
272 bool IsSigned) { in eliminateIVRemainder() argument
288 if ((!IsSigned || SE->isKnownNonNegative(S)) && in eliminateIVRemainder()
289 SE->isKnownPredicate(IsSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT, in eliminateIVRemainder()
295 if (IsSigned && !SE->isKnownNonNegative(LessOne)) in eliminateIVRemainder()
298 if (!SE->isKnownPredicate(IsSigned ? in eliminateIVRemainder()
430 bool IsSigned = Rem->getOpcode() == Instruction::SRem; in eliminateIVUser() local
431 if (IsSigned || Rem->getOpcode() == Instruction::URem) { in eliminateIVUser()
432 eliminateIVRemainder(Rem, IVOperand, IsSigned); in eliminateIVUser()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp81 bool IsSigned) { in MultiplyOverflows() argument
83 if (IsSigned) in MultiplyOverflows()
93 bool IsSigned) { in IsMultiple() argument
102 if (IsSigned && C1.isMinSignedValue() && C2.isAllOnesValue()) in IsMultiple()
105 APInt Remainder(C1.getBitWidth(), /*Val=*/0ULL, IsSigned); in IsMultiple()
106 if (IsSigned) in IsMultiple()
822 bool IsSigned = I.getOpcode() == Instruction::SDiv; in commonIDivTransforms() local
825 if ((IsSigned && match(LHS, m_SDiv(m_Value(X), m_APInt(C1)))) || in commonIDivTransforms()
826 (!IsSigned && match(LHS, m_UDiv(m_Value(X), m_APInt(C1))))) { in commonIDivTransforms()
827 APInt Product(C1->getBitWidth(), /*Val=*/0ULL, IsSigned); in commonIDivTransforms()
[all …]
/external/clang/lib/Frontend/
DInitPreprocessor.cpp202 bool IsSigned = TI.isTypeSigned(Ty); in DefineFmt() local
204 for (const char *Fmt = IsSigned ? "di" : "ouxX"; *Fmt; ++Fmt) { in DefineFmt()
230 bool IsSigned = TI.isTypeSigned(Ty); in DefineExactWidthIntType() local
235 Ty = IsSigned ? TI.getInt64Type() : TI.getUInt64Type(); in DefineExactWidthIntType()
237 const char *Prefix = IsSigned ? "__INT" : "__UINT"; in DefineExactWidthIntType()
250 bool IsSigned = TI.isTypeSigned(Ty); in DefineExactWidthIntTypeSize() local
255 Ty = IsSigned ? TI.getInt64Type() : TI.getUInt64Type(); in DefineExactWidthIntTypeSize()
257 const char *Prefix = IsSigned ? "__INT" : "__UINT"; in DefineExactWidthIntTypeSize()
261 static void DefineLeastWidthIntType(unsigned TypeWidth, bool IsSigned, in DefineLeastWidthIntType() argument
264 TargetInfo::IntType Ty = TI.getLeastIntTypeByWidth(TypeWidth, IsSigned); in DefineLeastWidthIntType()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DAMDGPUCodeGenPrepare.cpp141 bool IsDiv, bool IsSigned) const;
509 bool IsDiv, bool IsSigned) const { in expandDivRem24()
524 if (IsSigned) in expandDivRem24()
533 if (IsSigned) { in expandDivRem24()
551 Value *FA = IsSigned ? Builder.CreateSIToFP(IA, F32Ty) in expandDivRem24()
555 Value *FB = IsSigned ? Builder.CreateSIToFP(IB,F32Ty) in expandDivRem24()
573 Value *IQ = IsSigned ? Builder.CreateFPToSI(FQ, I32Ty) in expandDivRem24()
599 if (IsSigned) { in expandDivRem24()
625 bool IsSigned = Opc == Instruction::SRem || Opc == Instruction::SDiv; in expandDivRem32() local
632 if (IsSigned) { in expandDivRem32()
[all …]
/external/eigen/test/
Dnumext.cpp16 if(NumTraits<T>::IsSigned) in check_abs()
26 if(NumTraits<T>::IsSigned) in check_abs()
/external/deqp-deps/SPIRV-Tools/source/util/
Dparse_number.cpp80 bool can_be_signed = IsSigned(type); in ParseAndEncodeIntegerNumber()
104 << "-bit " << (IsSigned(type) ? "signed" : "unsigned") << " integer"; in ParseAndEncodeIntegerNumber()
119 << "-bit " << (IsSigned(type) ? "signed" : "unsigned") << " integer"; in ParseAndEncodeIntegerNumber()
/external/swiftshader/third_party/SPIRV-Tools/source/util/
Dparse_number.cpp80 bool can_be_signed = IsSigned(type); in ParseAndEncodeIntegerNumber()
104 << "-bit " << (IsSigned(type) ? "signed" : "unsigned") << " integer"; in ParseAndEncodeIntegerNumber()
119 << "-bit " << (IsSigned(type) ? "signed" : "unsigned") << " integer"; in ParseAndEncodeIntegerNumber()
Dparse_number.h49 inline bool IsSigned(const NumberType& type) { in IsSigned() function
128 if (value < 0 || IsSigned(type)) { in CheckRangeAndIfHexThenSignExtend()
/external/angle/third_party/spirv-tools/src/source/util/
Dparse_number.cpp80 bool can_be_signed = IsSigned(type); in ParseAndEncodeIntegerNumber()
104 << "-bit " << (IsSigned(type) ? "signed" : "unsigned") << " integer"; in ParseAndEncodeIntegerNumber()
119 << "-bit " << (IsSigned(type) ? "signed" : "unsigned") << " integer"; in ParseAndEncodeIntegerNumber()
/external/llvm/lib/Transforms/Scalar/
DIndVarSimplify.cpp800 bool IsSigned = false; // Was a sext user seen before a zext? member
809 bool IsSigned = Cast->getOpcode() == Instruction::SExt; in visitIVCast() local
810 if (!IsSigned && Cast->getOpcode() != Instruction::ZExt) in visitIVCast()
833 WI.IsSigned = IsSigned; in visitIVCast()
838 if (WI.IsSigned != IsSigned) in visitIVCast()
875 bool IsSigned; member in __anon49122e510511::WidenIV
898 IsSigned(WI.IsSigned), in WidenIV()
913 Value *createExtendInst(Value *NarrowOper, Type *WideType, bool IsSigned,
948 bool IsSigned, Instruction *Use) { in createExtendInst() argument
957 return IsSigned ? Builder.CreateSExt(NarrowOper, WideType) : in createExtendInst()
[all …]
/external/angle/third_party/spirv-tools/src/source/fuzz/
Dfuzzer_pass_obfuscate_constants.cpp180 assert(signed_int_constant_1->type()->AsInteger()->IsSigned()); in ObfuscateBoolConstantViaSignedIntConstantPair()
181 assert(signed_int_constant_2->type()->AsInteger()->IsSigned()); in ObfuscateBoolConstantViaSignedIntConstantPair()
222 assert(!unsigned_int_constant_1->type()->AsInteger()->IsSigned()); in ObfuscateBoolConstantViaUnsignedIntConstantPair()
223 assert(!unsigned_int_constant_2->type()->AsInteger()->IsSigned()); in ObfuscateBoolConstantViaUnsignedIntConstantPair()
299 if (chosen_type->AsInteger()->IsSigned()) { in ObfuscateBoolConstant()
/external/deqp-deps/SPIRV-Tools/source/fuzz/
Dfuzzer_pass_obfuscate_constants.cpp180 assert(signed_int_constant_1->type()->AsInteger()->IsSigned()); in ObfuscateBoolConstantViaSignedIntConstantPair()
181 assert(signed_int_constant_2->type()->AsInteger()->IsSigned()); in ObfuscateBoolConstantViaSignedIntConstantPair()
222 assert(!unsigned_int_constant_1->type()->AsInteger()->IsSigned()); in ObfuscateBoolConstantViaUnsignedIntConstantPair()
223 assert(!unsigned_int_constant_2->type()->AsInteger()->IsSigned()); in ObfuscateBoolConstantViaUnsignedIntConstantPair()
299 if (chosen_type->AsInteger()->IsSigned()) { in ObfuscateBoolConstant()
/external/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Dfuzzer_pass_obfuscate_constants.cpp178 assert(signed_int_constant_1->type()->AsInteger()->IsSigned()); in ObfuscateBoolConstantViaSignedIntConstantPair()
179 assert(signed_int_constant_2->type()->AsInteger()->IsSigned()); in ObfuscateBoolConstantViaSignedIntConstantPair()
220 assert(!unsigned_int_constant_1->type()->AsInteger()->IsSigned()); in ObfuscateBoolConstantViaUnsignedIntConstantPair()
221 assert(!unsigned_int_constant_2->type()->AsInteger()->IsSigned()); in ObfuscateBoolConstantViaUnsignedIntConstantPair()
294 if (chosen_type->AsInteger()->IsSigned()) { in ObfuscateBoolConstant()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DAPFloat.h640 unsigned int Width, bool IsSigned, roundingMode RM,
642 opStatus convertFromAPInt(const APInt &Input, bool IsSigned, roundingMode RM);
644 unsigned int InputSize, bool IsSigned,
647 unsigned int InputSize, bool IsSigned,
1070 unsigned int Width, bool IsSigned, roundingMode RM, in convertToInteger() argument
1073 convertToInteger(Input, Width, IsSigned, RM, IsExact)); in convertToInteger()
1077 opStatus convertFromAPInt(const APInt &Input, bool IsSigned, in convertFromAPInt() argument
1079 APFLOAT_DISPATCH_ON_SEMANTICS(convertFromAPInt(Input, IsSigned, RM)); in convertFromAPInt()
1082 unsigned int InputSize, bool IsSigned, in convertFromSignExtendedInteger() argument
1085 convertFromSignExtendedInteger(Input, InputSize, IsSigned, RM)); in convertFromSignExtendedInteger()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DInductiveRangeCheckElimination.cpp159 bool IsSigned = true; member in __anona304cda70111::InductiveRangeCheck
163 Value *&Length, bool &IsSigned);
174 bool isSigned() const { return IsSigned; } in isSigned()
212 bool isEmpty(ScalarEvolution &SE, bool IsSigned) const { in isEmpty()
215 if (IsSigned) in isEmpty()
314 Value *&Length, bool &IsSigned) { in parseRangeCheckICmp() argument
331 IsSigned = true; in parseRangeCheckICmp()
342 IsSigned = true; in parseRangeCheckICmp()
359 IsSigned = false; in parseRangeCheckICmp()
393 bool IsSigned; in extractRangeChecksFromCond() local
[all …]
/external/eigen/Eigen/src/Core/
DNumTraits.h92 IsSigned = std::numeric_limits<T>::is_signed,
207 IsSigned = NumTraits<Scalar>::IsSigned,
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/
DPPCFastISel.cpp137 bool SelectIToFP(const Instruction *I, bool IsSigned);
138 bool SelectFPToI(const Instruction *I, bool IsSigned);
176 unsigned SrcReg, bool IsSigned);
177 unsigned PPCMoveToFPReg(MVT VT, unsigned SrcReg, bool IsSigned);
1014 bool IsSigned) { in PPCMoveToFPReg() argument
1019 if (!PPCEmitIntExt(MVT::i32, SrcReg, MVT::i64, TmpReg, !IsSigned)) in PPCMoveToFPReg()
1038 if (!IsSigned) { in PPCMoveToFPReg()
1049 if (!PPCEmitLoad(MVT::f64, ResultReg, Addr, RC, !IsSigned, LoadOpc)) in PPCMoveToFPReg()
1058 bool PPCFastISel::SelectIToFP(const Instruction *I, bool IsSigned) { in SelectIToFP() argument
1086 Opc = IsSigned ? PPC::EFSCFSI : PPC::EFSCFUI; in SelectIToFP()
[all …]
/external/llvm/lib/Target/PowerPC/
DPPCFastISel.cpp137 bool SelectIToFP(const Instruction *I, bool IsSigned);
138 bool SelectFPToI(const Instruction *I, bool IsSigned);
175 unsigned SrcReg, bool IsSigned);
176 unsigned PPCMoveToFPReg(MVT VT, unsigned SrcReg, bool IsSigned);
955 bool IsSigned) { in PPCMoveToFPReg() argument
960 if (!PPCEmitIntExt(MVT::i32, SrcReg, MVT::i64, TmpReg, !IsSigned)) in PPCMoveToFPReg()
979 if (!IsSigned) { in PPCMoveToFPReg()
990 if (!PPCEmitLoad(MVT::f64, ResultReg, Addr, RC, !IsSigned, LoadOpc)) in PPCMoveToFPReg()
999 bool PPCFastISel::SelectIToFP(const Instruction *I, bool IsSigned) { in SelectIToFP() argument
1025 if (!IsSigned && !PPCSubTarget->hasFPCVT()) in SelectIToFP()
[all …]
/external/compiler-rt/lib/ubsan/
Dubsan_handlers.cc111 bool IsSigned = Data->Type.isSignedIntegerTy(); in handleIntegerOverflowImpl() local
112 ErrorType ET = IsSigned ? ErrorType::SignedIntegerOverflow in handleIntegerOverflowImpl()
122 << (IsSigned ? "signed" : "unsigned") in handleIntegerOverflowImpl()
145 bool IsSigned = Data->Type.isSignedIntegerTy(); in handleNegateOverflowImpl() local
146 ErrorType ET = IsSigned ? ErrorType::SignedIntegerOverflow in handleNegateOverflowImpl()
154 if (IsSigned) in handleNegateOverflowImpl()

123456789