Home
last modified time | relevance | path

Searched refs:IsNegative (Results 1 – 25 of 52) sorted by relevance

123

/external/llvm-project/flang/lib/Evaluate/
Dreal.cpp24 if (IsNegative()) { // -Inf vs +/-Inf in Compare()
25 return y.IsNegative() ? Relation::Equal : Relation::Less; in Compare()
27 return y.IsNegative() ? Relation::Greater : Relation::Equal; in Compare()
30 return IsNegative() ? Relation::Less : Relation::Greater; in Compare()
33 return y.IsNegative() ? Relation::Greater : Relation::Less; in Compare()
35 bool isNegative{IsNegative()}; in Compare()
36 if (isNegative != y.IsNegative()) { in Compare()
67 bool isNegative{IsNegative()}; in Add()
68 bool yIsNegative{y.IsNegative()}; in Add()
146 bool isNegative{IsNegative() != y.IsNegative()}; in Multiply()
[all …]
Dint-power.h30 bool negativePower{power.IsNegative()};
Dformatting.cpp217 if (n->IsNegative()) { in ToPrecedence()
232 return n->IsNegative(); in IsNegatedScalarConstant()
/external/llvm-project/flang/include/flang/Evaluate/
Dinteger.h97 return lower.IsNegative() ? (upper.POPCNT() != bits) : !upper.IsZero(); in SignedMultiplicationOverflowed()
273 overflow |= isSigned && !result.IsNegative() && !result.IsZero();
275 overflow |= isSigned && result.IsNegative();
305 if (that.IsNegative()) { in ConvertSigned()
334 if (IsNegative()) { in SignedDecimal()
374 constexpr bool IsNegative() const { in IsNegative() function
379 if (IsNegative()) { in CompareToZeroSigned()
458 bool isNegative{IsNegative()}; in CompareSigned()
459 if (isNegative != y.IsNegative()) { in CompareSigned()
518 if (IsNegative()) { in ABS()
[all …]
Dreal.h71 constexpr bool IsNegative() const { in IsNegative() function
183 bool isNegative{n.IsNegative()};
256 bool isNegative{x.IsNegative()};
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DNativeFormatting.cpp53 IntegerStyle Style, bool IsNegative) { in write_unsigned_impl() argument
62 if (IsNegative) in write_unsigned_impl()
79 IntegerStyle Style, bool IsNegative = false) { in write_unsigned() argument
83 IsNegative); in write_unsigned()
85 write_unsigned_impl(S, N, MinDigits, Style, IsNegative); in write_unsigned()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DNativeFormatting.cpp52 IntegerStyle Style, bool IsNegative) { in write_unsigned_impl() argument
61 if (IsNegative) in write_unsigned_impl()
78 IntegerStyle Style, bool IsNegative = false) { in write_unsigned() argument
82 IsNegative); in write_unsigned()
84 write_unsigned_impl(S, N, MinDigits, Style, IsNegative); in write_unsigned()
/external/llvm-project/llvm/lib/Support/
DNativeFormatting.cpp51 IntegerStyle Style, bool IsNegative) { in write_unsigned_impl() argument
60 if (IsNegative) in write_unsigned_impl()
77 IntegerStyle Style, bool IsNegative = false) { in write_unsigned() argument
81 IsNegative); in write_unsigned()
83 write_unsigned_impl(S, N, MinDigits, Style, IsNegative); in write_unsigned()
/external/llvm-project/flang/unittests/Evaluate/
Dreal.cpp55 TEST(!zero.IsNegative())(desc); in basicTests()
66 TEST(minusZero.IsNegative())(desc); in basicTests()
85 TEST(!nan.IsNegative())(desc); in basicTests()
99 TEST(!inf.IsNegative())(desc); in basicTests()
110 TEST(negInf.IsNegative())(desc); in basicTests()
134 TEST(!ix.IsNegative())(ldesc); in basicTests()
137 TEST(!vr.value.IsNegative())(ldesc); in basicTests()
168 TEST(ix.IsNegative())(ldesc); in basicTests()
174 TEST(vr.value.IsNegative())(ldesc); in basicTests()
235 inline bool IsNegative(std::uint32_t x) { return (x & 0x80000000) != 0; } in IsNegative() function
[all …]
Dinteger.cpp101 TEST(a.IsNegative())("%s, x=0x%llx", desc, x); in exhaustiveTesting()
106 TEST(!a.IsNegative())("%s, x=0x%llx", desc, x); in exhaustiveTesting()
163 ("%s, x=0x%llx %lld %d, y=0x%llx %lld %d", desc, x, sx, a.IsNegative(), y, in exhaustiveTesting()
164 sy, b.IsNegative()); in exhaustiveTesting()
/external/llvm-project/llvm/lib/Demangle/
DMicrosoftDemangle.cpp894 bool IsNegative = MangledName.consumeFront('?'); in demangleNumber() local
899 return {Ret, IsNegative}; in demangleNumber()
907 return {Ret, IsNegative}; in demangleNumber()
921 bool IsNegative = false; in demangleUnsigned() local
923 std::tie(Number, IsNegative) = demangleNumber(MangledName); in demangleUnsigned()
924 if (IsNegative) in demangleUnsigned()
930 bool IsNegative = false; in demangleSigned() local
932 std::tie(Number, IsNegative) = demangleNumber(MangledName); in demangleSigned()
936 return IsNegative ? -I : I; in demangleSigned()
1280 bool IsNegative = false; in demangleStringLiteral() local
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Demangle/
DMicrosoftDemangle.cpp894 bool IsNegative = MangledName.consumeFront('?'); in demangleNumber() local
899 return {Ret, IsNegative}; in demangleNumber()
907 return {Ret, IsNegative}; in demangleNumber()
921 bool IsNegative = false; in demangleUnsigned() local
923 std::tie(Number, IsNegative) = demangleNumber(MangledName); in demangleUnsigned()
924 if (IsNegative) in demangleUnsigned()
930 bool IsNegative = false; in demangleSigned() local
932 std::tie(Number, IsNegative) = demangleNumber(MangledName); in demangleSigned()
936 return IsNegative ? -I : I; in demangleSigned()
1280 bool IsNegative = false; in demangleStringLiteral() local
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Demangle/
DMicrosoftDemangleNodes.h554 IntegerLiteralNode(uint64_t Value, bool IsNegative) in IntegerLiteralNode()
555 : Node(NodeKind::IntegerLiteral), Value(Value), IsNegative(IsNegative) {} in IntegerLiteralNode()
560 bool IsNegative = false; member
/external/llvm-project/llvm/include/llvm/Demangle/
DMicrosoftDemangleNodes.h554 IntegerLiteralNode(uint64_t Value, bool IsNegative) in IntegerLiteralNode()
555 : Node(NodeKind::IntegerLiteral), Value(Value), IsNegative(IsNegative) {} in IntegerLiteralNode()
560 bool IsNegative = false; member
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/AsmParser/
DWebAssemblyAsmParser.cpp342 void parseSingleInteger(bool IsNegative, OperandVector &Operands) { in parseSingleInteger() argument
345 if (IsNegative) in parseSingleInteger()
353 bool parseSingleFloat(bool IsNegative, OperandVector &Operands) { in parseSingleFloat() argument
358 if (IsNegative) in parseSingleFloat()
367 bool parseSpecialFloatMaybe(bool IsNegative, OperandVector &Operands) { in parseSpecialFloatMaybe() argument
380 if (IsNegative) in parseSpecialFloatMaybe()
/external/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/
DWebAssemblyAsmParser.cpp362 void parseSingleInteger(bool IsNegative, OperandVector &Operands) { in parseSingleInteger() argument
365 if (IsNegative) in parseSingleInteger()
373 bool parseSingleFloat(bool IsNegative, OperandVector &Operands) { in parseSingleFloat() argument
378 if (IsNegative) in parseSingleFloat()
387 bool parseSpecialFloatMaybe(bool IsNegative, OperandVector &Operands) { in parseSpecialFloatMaybe() argument
400 if (IsNegative) in parseSpecialFloatMaybe()
/external/llvm-project/clang-tools-extra/docs/clang-tidy/checks/
Dgoogle-objc-function-naming.rst20 bool IsNegative(int i) { return i < 0; }
/external/llvm-project/flang/lib/Decimal/
Dbinary-to-decimal.cpp20 bool negative{x.IsNegative()};
286 if (x.IsNegative()) { in ConvertToDecimal()
/external/llvm-project/flang/include/flang/Decimal/
Dbinary-floating-point.h91 constexpr bool IsNegative() const { return ((raw_ >> (bits - 1)) & 1) != 0; } in IsNegative() function
/external/llvm-project/lldb/include/lldb/DataFormatters/
DFormattersHelpers.h91 bool IsNegative() const { in IsNegative() function
/external/llvm-project/llvm/include/llvm/IR/
DFixedPointBuilder.h54 Value *IsNegative = B.CreateICmpSLT(Result, Zero); in Convert() local
58 Result = B.CreateSelect(IsNegative, Rounded, Result); in Convert()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DMathExtras.h938 const bool IsNegative = (X < 0) ^ (Y < 0);
939 Result = IsNegative ? (0 - UResult) : UResult;
948 if (IsNegative)
/external/llvm-project/llvm/include/llvm/Support/
DMathExtras.h945 const bool IsNegative = (X < 0) ^ (Y < 0);
946 Result = IsNegative ? (0 - UResult) : UResult;
955 if (IsNegative)
/external/llvm-project/llvm/unittests/ADT/
DAPFixedPointTest.cpp368 bool IsNegative = ScaledVal < 0; in CheckUnsaturatedConversion() local
369 if (IsNegative) in CheckUnsaturatedConversion()
378 if (IsNegative) in CheckUnsaturatedConversion()
/external/llvm-project/llvm/include/llvm/Option/
DOptParser.td183 class IsNegative {

123