Home
last modified time | relevance | path

Searched refs:isSigned (Results 1 – 25 of 264) sorted by relevance

1234567891011

/external/swiftshader/third_party/LLVM/unittests/ADT/
DAPIntTest.cpp343 bool isSigned; in TEST() local
361 isSigned = false; in TEST()
362 APInt(8, 255, isSigned).toString(S, 2, isSigned, true); in TEST()
365 APInt(8, 255, isSigned).toString(S, 8, isSigned, true); in TEST()
368 APInt(8, 255, isSigned).toString(S, 10, isSigned, true); in TEST()
371 APInt(8, 255, isSigned).toString(S, 16, isSigned, true); in TEST()
374 APInt(8, 255, isSigned).toString(S, 36, isSigned, true); in TEST()
378 isSigned = true; in TEST()
379 APInt(8, 255, isSigned).toString(S, 2, isSigned, true); in TEST()
382 APInt(8, 255, isSigned).toString(S, 8, isSigned, true); in TEST()
[all …]
/external/parameter-framework/upstream/parameter/
DIntegerParameterBuilder.h48 bool isSigned = false; in createElement() local
49 xmlElement.getAttribute("Signed", isSigned); in createElement()
55 if (isSigned) { in createElement()
60 if (isSigned) { in createElement()
65 if (isSigned) { in createElement()
DIntegerParameterType.h46 template <bool isSigned, size_t size>
59 using CType = typename std::conditional<isSigned, Signed, Unsigned>::type;
63 template <bool isSigned, size_t bitSize>
68 using CType = typename detail::IntegerTraits<isSigned, bitSize>::CType;
112 xmlElement.setAttribute("Signed", isSigned); in toXml()
137 if (isSigned) { in fromBlackboard()
227 if (isSigned and utility::isHexadecimal(strValue)) { in toBlackboard()
251 if (isSigned) { in fromBlackboard()
278 stream << "Signed: " << (isSigned ? "yes" : "no") << "\n" in showProperties()
299 if (isSigned) { in toPlainInteger()
/external/clang/lib/StaticAnalyzer/Core/
DAPSIntType.cpp21 Value.isSigned() && Value.isNegative()) in testInRange()
26 if (Value.isSigned() && !IsUnsigned) in testInRange()
36 if (Value.isSigned()) in testInRange()
45 if (Value.isSigned() && Value.isNegative()) in testInRange()
/external/bcc/src/cc/frontends/p4/compiler/
DebpfScalarType.py12 def __init__(self, parent, widthInBits, isSigned, config): argument
15 assert isinstance(isSigned, bool)
17 self.isSigned = isSigned
30 if self.isSigned:
/external/llvm/include/llvm/ADT/
DAPSInt.h59 bool isSigned() const { return !IsUnsigned; } in isSigned() function
66 APInt::toString(Str, Radix, isSigned());
71 return APInt::toString(Radix, isSigned()); in toString()
78 return isSigned() ? getSExtValue() : getZExtValue(); in getExtValue()
296 if (I1.getBitWidth() == I2.getBitWidth() && I1.isSigned() == I2.isSigned()) in compareValues()
307 if (I1.isSigned()) { in compareValues()
308 assert(!I2.isSigned() && "Expected signed mismatch"); in compareValues()
312 assert(I2.isSigned() && "Expected signed mismatch"); in compareValues()
336 I.print(OS, I.isSigned());
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DAPSInt.h59 bool isSigned() const { return !IsUnsigned; } in isSigned() function
66 APInt::toString(Str, Radix, isSigned());
71 return APInt::toString(Radix, isSigned()); in toString()
78 return isSigned() ? getSExtValue() : getZExtValue(); in getExtValue()
290 if (I1.getBitWidth() == I2.getBitWidth() && I1.isSigned() == I2.isSigned()) in compareValues()
301 if (I1.isSigned()) { in compareValues()
302 assert(!I2.isSigned() && "Expected signed mismatch"); in compareValues()
306 assert(I2.isSigned() && "Expected signed mismatch"); in compareValues()
330 I.print(OS, I.isSigned());
/external/llvm/lib/Transforms/Utils/
DCmpInstAnalysis.cpp93 return (CmpInst::isSigned(p1) == CmpInst::isSigned(p2)) || in PredicatesFoldable()
94 (CmpInst::isSigned(p1) && ICmpInst::isEquality(p2)) || in PredicatesFoldable()
95 (CmpInst::isSigned(p2) && ICmpInst::isEquality(p1)); in PredicatesFoldable()
/external/llvm/unittests/ADT/
DAPIntTest.cpp689 bool isSigned; in TEST() local
707 isSigned = false; in TEST()
708 APInt(8, 255, isSigned).toString(S, 2, isSigned, true); in TEST()
711 APInt(8, 255, isSigned).toString(S, 8, isSigned, true); in TEST()
714 APInt(8, 255, isSigned).toString(S, 10, isSigned, true); in TEST()
717 APInt(8, 255, isSigned).toString(S, 16, isSigned, true); in TEST()
720 APInt(8, 255, isSigned).toString(S, 36, isSigned, false); in TEST()
724 isSigned = true; in TEST()
725 APInt(8, 255, isSigned).toString(S, 2, isSigned, true); in TEST()
728 APInt(8, 255, isSigned).toString(S, 8, isSigned, true); in TEST()
[all …]
DAPSIntTest.cpp45 EXPECT_TRUE(APSInt::get(7).isSigned()); in TEST()
49 EXPECT_TRUE(APSInt::get(-7).isSigned()); in TEST()
68 EXPECT_TRUE(APSInt(APInt(3, 7), false).isSigned()); in TEST()
70 EXPECT_TRUE(APSInt(APInt(4, 7), false).isSigned()); in TEST()
72 EXPECT_TRUE(APSInt(APInt(4, -7), false).isSigned()); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DCmpInstAnalysis.cpp62 return (CmpInst::isSigned(p1) == CmpInst::isSigned(p2)) || in PredicatesFoldable()
63 (CmpInst::isSigned(p1) && ICmpInst::isEquality(p2)) || in PredicatesFoldable()
64 (CmpInst::isSigned(p2) && ICmpInst::isEquality(p1)); in PredicatesFoldable()
/external/swiftshader/src/Device/
DETC_Decoder.cpp29 inline int clampEAC(int value, bool isSigned) in clampEAC() argument
31 int min = isSigned ? -1023 : 0; in clampEAC()
32 int max = isSigned ? 1023 : 2047; in clampEAC()
92 …igned char *dest, int nbChannels, int x, int y, int w, int h, int pitch, bool isSigned, bool isEAC) in DecodeBlock()
103 … sDst[i * nbChannels + c] = clampEAC(sources[c]->getSingleChannel(i, j, isSigned, true), isSigned); in DecodeBlock()
111 if(isSigned) in DecodeBlock()
120 sDst[i * nbChannels + c] = clampSByte(sources[c]->getSingleChannel(i, j, isSigned, false)); in DecodeBlock()
134 dest[i * nbChannels + c] = clampByte(sources[c]->getSingleChannel(i, j, isSigned, false)); in DecodeBlock()
619 inline int getSingleChannel(int x, int y, bool isSigned, bool isEAC) const in getSingleChannel()
621 int codeword = isSigned ? signed_base_codeword : base_codeword; in getSingleChannel()
/external/swiftshader/src/Renderer/
DETC_Decoder.cpp29 inline int clampEAC(int value, bool isSigned) in clampEAC() argument
31 int min = isSigned ? -1023 : 0; in clampEAC()
32 int max = isSigned ? 1023 : 2047; in clampEAC()
92 …igned char *dest, int nbChannels, int x, int y, int w, int h, int pitch, bool isSigned, bool isEAC) in DecodeBlock()
103 … sDst[i * nbChannels + c] = clampEAC(sources[c]->getSingleChannel(i, j, isSigned, true), isSigned); in DecodeBlock()
111 if(isSigned) in DecodeBlock()
120 sDst[i * nbChannels + c] = clampSByte(sources[c]->getSingleChannel(i, j, isSigned, false)); in DecodeBlock()
134 dest[i * nbChannels + c] = clampByte(sources[c]->getSingleChannel(i, j, isSigned, false)); in DecodeBlock()
619 inline int getSingleChannel(int x, int y, bool isSigned, bool isEAC) const in getSingleChannel()
621 int codeword = isSigned ? signed_base_codeword : base_codeword; in getSingleChannel()
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cert/ocsp/
DOCSPReq.java162 if (!this.isSigned()) in getSignatureAlgOID()
172 if (!this.isSigned()) in getSignature()
214 public boolean isSigned() in isSigned() method in OCSPReq
226 if (!this.isSigned()) in isSignatureValid()
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
DLegalizeDAG.cpp116 SDValue ExpandLibCall(RTLIB::Libcall LC, SDNode *Node, bool isSigned);
118 unsigned NumOps, bool isSigned, DebugLoc dl);
121 SDNode *Node, bool isSigned);
125 SDValue ExpandIntLibCall(SDNode *Node, bool isSigned,
139 SDValue ExpandLegalINT_TO_FP(bool isSigned, SDValue LegalOp, EVT DestVT,
141 SDValue PromoteLegalINT_TO_FP(SDValue LegalOp, EVT DestVT, bool isSigned,
143 SDValue PromoteLegalFP_TO_INT(SDValue LegalOp, EVT DestVT, bool isSigned,
2192 bool isSigned) { in ExpandLibCall() argument
2205 Entry.isSExt = isSigned; in ExpandLibCall()
2206 Entry.isZExt = !isSigned; in ExpandLibCall()
[all …]
DLegalizeTypes.cpp1018 bool isSigned) { in LibCallify() argument
1022 return MakeLibCall(LC, N->getValueType(0), 0, 0, isSigned, dl); in LibCallify()
1025 return MakeLibCall(LC, N->getValueType(0), &Op, 1, isSigned, dl); in LibCallify()
1028 return MakeLibCall(LC, N->getValueType(0), Ops, 2, isSigned, dl); in LibCallify()
1034 return MakeLibCall(LC, N->getValueType(0), &Ops[0], NumOps, isSigned, dl); in LibCallify()
1041 bool isSigned, DebugLoc dl) { in MakeLibCall() argument
1049 Entry.isSExt = isSigned; in MakeLibCall()
1050 Entry.isZExt = !isSigned; in MakeLibCall()
1058 TLI.LowerCallTo(DAG.getEntryNode(), RetTy, isSigned, !isSigned, false, in MakeLibCall()
1070 bool isSigned) { in ExpandChainLibCall() argument
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/
DAPSIntTest.cpp45 EXPECT_TRUE(APSInt::get(7).isSigned()); in TEST()
49 EXPECT_TRUE(APSInt::get(-7).isSigned()); in TEST()
68 EXPECT_TRUE(APSInt(APInt(3, 7), false).isSigned()); in TEST()
70 EXPECT_TRUE(APSInt(APInt(4, 7), false).isSigned()); in TEST()
72 EXPECT_TRUE(APSInt(APInt(4, -7), false).isSigned()); in TEST()
/external/v8/src/
Dmachine-type.h199 bool isSigned = true) {
206 return isSigned ? MachineType::Int8() : MachineType::Uint8();
208 return isSigned ? MachineType::Int16() : MachineType::Uint16();
210 return isSigned ? MachineType::Int32() : MachineType::Uint32();
212 return isSigned ? MachineType::Int64() : MachineType::Uint64();
/external/lzma/CPP/Windows/Control/
DDialog.h54 bool SetItemInt(int itemID, UINT value, bool isSigned) in SetItemInt() argument
55 { return BOOLToBool(SetDlgItemInt(_window, itemID, value, BoolToBOOL(isSigned))); } in SetItemInt()
56 bool GetItemInt(int itemID, bool isSigned, UINT &value) in GetItemInt() argument
59 value = GetDlgItemInt(_window, itemID, &result, BoolToBOOL(isSigned)); in GetItemInt()
/external/deqp-deps/SPIRV-Tools/source/
Dtext_handler.h48 bool isSigned; // This is only significant if type_class is integral. member
55 (first.isSigned == second.isSigned) &&
/external/swiftshader/third_party/SPIRV-Tools/source/
Dtext_handler.h48 bool isSigned; // This is only significant if type_class is integral. member
55 (first.isSigned == second.isSigned) &&
/external/skqp/src/sksl/ir/
DSkSLType.cpp32 if (this->isSigned() && other.isSigned()) { in coercionCost()
38 if (this->isUnsigned() && other.isSigned() && other.priority() > priority()) { in coercionCost()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp186 return (CmpInst::isSigned(p1) == CmpInst::isSigned(p2)) || in PredicatesFoldable()
187 (CmpInst::isSigned(p1) && ICmpInst::isEquality(p2)) || in PredicatesFoldable()
188 (CmpInst::isSigned(p2) && ICmpInst::isEquality(p1)); in PredicatesFoldable()
339 bool isSigned, bool Inside) { in InsertRangeTest() argument
340 assert(cast<ConstantInt>(ConstantExpr::getICmp((isSigned ? in InsertRangeTest()
349 if (cast<ConstantInt>(Lo)->isMinValue(isSigned)) { in InsertRangeTest()
350 ICmpInst::Predicate pred = (isSigned ? in InsertRangeTest()
367 if (cast<ConstantInt>(Lo)->isMinValue(isSigned)) { in InsertRangeTest()
368 ICmpInst::Predicate pred = (isSigned ? in InsertRangeTest()
730 bool isSigned = LHS->isSigned() || RHS->isSigned(); in FoldAndOfICmps() local
[all …]
/external/llvm/lib/CodeGen/SelectionDAG/
DLegalizeDAG.cpp112 SDValue ExpandLibCall(RTLIB::Libcall LC, SDNode *Node, bool isSigned);
114 unsigned NumOps, bool isSigned, const SDLoc &dl);
117 SDNode *Node, bool isSigned);
122 SDValue ExpandIntLibCall(SDNode *Node, bool isSigned,
143 SDValue ExpandLegalINT_TO_FP(bool isSigned, SDValue LegalOp, EVT DestVT,
145 SDValue PromoteLegalINT_TO_FP(SDValue LegalOp, EVT DestVT, bool isSigned,
147 SDValue PromoteLegalFP_TO_INT(SDValue LegalOp, EVT DestVT, bool isSigned,
1940 bool isSigned) { in ExpandLibCall() argument
1948 Entry.isSExt = isSigned; in ExpandLibCall()
1949 Entry.isZExt = !isSigned; in ExpandLibCall()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/ADT/
DAPSInt.h55 bool isSigned() const { return !IsUnsigned; } in isSigned() function
62 APInt::toString(Str, Radix, isSigned());
67 return APInt::toString(Radix, isSigned()); in toString()
259 I.print(OS, I.isSigned());

1234567891011