Home
last modified time | relevance | path

Searched refs:isNegative (Results 1 – 25 of 243) sorted by relevance

12345678910

/external/jsr305/ri/src/main/java/javax/annotation/
DNonnegative.java23 boolean isNegative; in forConstantValue()
26 isNegative = value.longValue() < 0; in forConstantValue()
28 isNegative = value.doubleValue() < 0; in forConstantValue()
30 isNegative = value.floatValue() < 0; in forConstantValue()
32 isNegative = value.intValue() < 0; in forConstantValue()
34 if (isNegative) in forConstantValue()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/impl/number/
DDecimalQuantity_SimpleStorage.java359 if (isNegative()) d = d.negate();
361 if (isNegative()) d = d.negate();
373 if (isNegative()) fallback = fallback.negate();
375 if (isNegative()) fallback = fallback.negate();
393 if (isNegative()) temp = temp.negate();
395 if (isNegative()) temp = temp.negate();
427 setNegative(!isNegative());
452 setNegative(!isNegative());
507 public boolean isNegative() {
513 return isNegative() ? -1 : isZero() ? 0 : 1;
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/impl/number/
DDecimalQuantity_SimpleStorage.java362 if (isNegative()) d = d.negate();
364 if (isNegative()) d = d.negate();
376 if (isNegative()) fallback = fallback.negate();
378 if (isNegative()) fallback = fallback.negate();
396 if (isNegative()) temp = temp.negate();
398 if (isNegative()) temp = temp.negate();
430 setNegative(!isNegative());
455 setNegative(!isNegative());
510 public boolean isNegative() {
516 return isNegative() ? -1 : isZero() ? 0 : 1;
[all …]
/external/icu/icu4c/source/test/intltest/
Ddcfmapts.cpp655 ASSERT_EQUAL(FALSE, fd.isNegative()); in TestFixedDecimal()
661 ASSERT_EQUAL(TRUE, fd.isNegative()); in TestFixedDecimal()
673 ASSERT_EQUAL(FALSE, fd.isNegative()); in TestFixedDecimal()
683 ASSERT_EQUAL(TRUE, fd.isNegative()); in TestFixedDecimal()
695 ASSERT_EQUAL(FALSE, fd.isNegative()); in TestFixedDecimal()
705 ASSERT_EQUAL(TRUE, fd.isNegative()); in TestFixedDecimal()
718 ASSERT_EQUAL(FALSE, fd.isNegative()); in TestFixedDecimal()
728 ASSERT_EQUAL(TRUE, fd.isNegative()); in TestFixedDecimal()
742 ASSERT_EQUAL(FALSE, fd.isNegative()); in TestFixedDecimal()
752 ASSERT_EQUAL(TRUE, fd.isNegative()); in TestFixedDecimal()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/ADT/
DAPInt.h295 bool isNegative() const { in isNegative() function
302 return !isNegative(); in isNonNegative()
331 !isNegative() && countPopulation() == BitWidth - 1; in isMaxSignedValue()
345 return BitWidth == 1 ? VAL == 1 : isNegative() && isPowerOf2(); in isMinSignedValue()
767 if (isNegative()) in sdiv()
768 if (RHS.isNegative()) in sdiv()
772 else if (RHS.isNegative()) in sdiv()
789 if (isNegative()) in srem()
790 if (RHS.isNegative()) in srem()
794 else if (RHS.isNegative()) in srem()
[all …]
/external/icu/icu4c/source/i18n/
Dnumber_roundingutils.h45 getRoundingDirection(bool isEven, bool isNegative, Section section, RoundingMode roundingMode, in getRoundingDirection() argument
58 return isNegative; in getRoundingDirection()
62 return !isNegative; in getRoundingDirection()
Dnumber_decimalquantity.cpp249 return static_cast<double>(isNegative() ? -toLong(true) : toLong(true)); in getPluralOperand()
303 bool DecimalQuantity::isNegative() const { in isNegative() function in DecimalQuantity
308 return isNegative() ? -1 : isZero() ? 0 : 1; in signum()
490 if (decnum.isNegative()) { in _setToDecNum()
511 if (isNegative()) { in toLong()
562 return isNegative(); in fitsInLong()
573 return isNegative() ? -INFINITY : INFINITY; in toDouble()
598 output.setTo(ubcd.getAlias(), precision, scale, isNegative(), status); in toDecNum()
712 isNegative(), in roundToMagnitude()
786 if (isNegative()) { in toPlainString()
[all …]
Dnumber_decnum.h46 …void setTo(const uint8_t* bcd, int32_t length, int32_t scale, bool isNegative, UErrorCode& status);
54 bool isNegative() const;
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DDecimalQuantity_AbstractBCD.java247 return isNegative() ? -toLong(true) : toLong(true); in getPluralOperand()
309 public boolean isNegative() { in isNegative() method in DecimalQuantity_AbstractBCD
315 return isNegative() ? -1 : isZero() ? 0 : 1; in signum()
593 if (isNegative()) { in toLong()
654 return isNegative(); in fitsInLong()
672 return isNegative() ? Double.NEGATIVE_INFINITY : Double.POSITIVE_INFINITY; in toDouble()
710 if (isNegative()) { in toDouble()
861 isNegative(), in roundToMagnitude()
958 if (isNegative()) { in toPlainString()
980 if (isNegative()) { in toScientificString()
DRoundingUtils.java58 boolean isNegative, in getRoundingDirection() argument
73 return isNegative; in getRoundingDirection()
77 return !isNegative; in getRoundingDirection()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DDecimalQuantity_AbstractBCD.java245 return isNegative() ? -toLong(true) : toLong(true); in getPluralOperand()
307 public boolean isNegative() { in isNegative() method in DecimalQuantity_AbstractBCD
313 return isNegative() ? -1 : isZero() ? 0 : 1; in signum()
591 if (isNegative()) { in toLong()
652 return isNegative(); in fitsInLong()
670 return isNegative() ? Double.NEGATIVE_INFINITY : Double.POSITIVE_INFINITY; in toDouble()
708 if (isNegative()) { in toDouble()
859 isNegative(), in roundToMagnitude()
956 if (isNegative()) { in toPlainString()
978 if (isNegative()) { in toScientificString()
DRoundingUtils.java56 boolean isNegative, in getRoundingDirection() argument
71 return isNegative; in getRoundingDirection()
75 return !isNegative; in getRoundingDirection()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DDecimalFormat_ICU58_Android.java804 private boolean isNegative(double number) { in isNegative() method in DecimalFormat_ICU58_Android
819 boolean isNegative = isNegative(number); in round()
820 if (isNegative) in round()
829 isNegative); in round()
880 boolean isNegative = isNegative(number); in format()
884 int prefixLen = appendAffix(result, isNegative, true, fieldPosition, parseAttr); in format()
904 int suffixLen = appendAffix(result, isNegative, false, fieldPosition, parseAttr); in format()
934 …alFormat_ICU58_Android.round(number, roundingInc, roundingIncReciprocal, roundingMode, isNegative); in format()
943 return subformat(number, result, fieldPosition, isNegative, false, parseAttr); in format()
992 return isNegative(multiply(number)); in isNumberNegative()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DDecimalFormat_ICU58_Android.java807 private boolean isNegative(double number) { in isNegative() method in DecimalFormat_ICU58_Android
822 boolean isNegative = isNegative(number); in round()
823 if (isNegative) in round()
832 isNegative); in round()
883 boolean isNegative = isNegative(number); in format()
887 int prefixLen = appendAffix(result, isNegative, true, fieldPosition, parseAttr); in format()
907 int suffixLen = appendAffix(result, isNegative, false, fieldPosition, parseAttr); in format()
937 …alFormat_ICU58_Android.round(number, roundingInc, roundingIncReciprocal, roundingMode, isNegative); in format()
946 return subformat(number, result, fieldPosition, isNegative, false, parseAttr); in format()
995 return isNegative(multiply(number)); in isNumberNegative()
[all …]
/external/clang/lib/StaticAnalyzer/Core/
DAPSIntType.cpp21 Value.isSigned() && Value.isNegative()) in testInRange()
45 if (Value.isSigned() && Value.isNegative()) in testInRange()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DAPInt.cpp290 bool lhsNeg = isNegative(); in compareSigned()
291 bool rhsNeg = RHS.isNegative(); in compareSigned()
450 unsigned isNegative = *p == '-'; in getBitsNeeded() local
460 return slen + isNegative; in getBitsNeeded()
462 return slen * 3 + isNegative; in getBitsNeeded()
464 return slen * 4 + isNegative; in getBitsNeeded()
487 return isNegative + 1; in getBitsNeeded()
489 return isNegative + log + 1; in getBitsNeeded()
857 std::memset(Result.U.pVal + getNumWords(), isNegative() ? -1 : 0, in sext()
924 bool Negative = isNegative(); in ashrSlowCase()
[all …]
DKnownBits.cpp59 else if (LHS.isNegative() && RHS.isNegative()) in computeForAddSub()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DValueTracking.cpp385 if (!CLHS->getValue().isNegative()) { in ComputeMaskedBits()
444 if (Mask.isNegative() && !KnownZero.isNegative() && !KnownOne.isNegative()){ in ComputeMaskedBits()
449 if (LHSKnownZero.isNegative() && KnownZero2.isNegative()) in ComputeMaskedBits()
452 else if (LHSKnownOne.isNegative() && KnownOne2.isNegative()) in ComputeMaskedBits()
456 if (LHSKnownZero.isNegative() && KnownOne2.isNegative()) in ComputeMaskedBits()
459 else if (LHSKnownOne.isNegative() && KnownZero2.isNegative()) in ComputeMaskedBits()
499 if (Mask.isNegative() && KnownZero.isNonNegative()) { in ComputeMaskedBits()
505 if (LHSKnownZero.isNegative()) in ComputeMaskedBits()
985 if (KnownZero.isNegative()) in ComputeNumSignBits()
1011 if (KnownZero.isNegative()) in ComputeNumSignBits()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DAPFloat.h319 bool isNegative() const { return sign; } in isNegative() function
358 bool isPosZero() const { return isZero() && !isNegative(); } in isPosZero()
359 bool isNegZero() const { return isZero() && isNegative(); } in isNegZero()
624 bool isNegative() const;
1052 if (isNegative()) in clearSign()
1056 if (isNegative() != RHS.isNegative()) in copySign()
1147 bool isNegative() const { return getIEEE().isNegative(); } in isNegative() function
1158 bool isPosZero() const { return isZero() && !isNegative(); } in isPosZero()
1159 bool isNegZero() const { return isZero() && isNegative(); } in isNegZero()
/external/owasp/sanitizer/distrib/lib/
Djsr305.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/annotation/ javax/ ...
/external/vogar/lib/
Djsr305.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/annotation/ javax/ ...
/external/guice/lib/build/
Djsr305.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/annotation/ javax/ ...
/external/owasp/sanitizer/lib/jsr305/
Djsr305.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/annotation/ javax/ ...
/external/owasp/sanitizer/tools/findbugs/lib/
Djsr305.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/annotation/ javax/ ...
/external/llvm/include/llvm/ADT/
DAPInt.h320 bool isNegative() const { return (*this)[BitWidth - 1]; } in isNegative() function
325 bool isNonNegative() const { return !isNegative(); } in isNonNegative()
355 return !isNegative() && countPopulation() == BitWidth - 1; in isMaxSignedValue()
369 return isNegative() && isPowerOf2(); in isMinSignedValue()
1066 return getMinSignedBits() > 64 ? isNegative() : getSExtValue() < RHS; in slt()
1134 return getMinSignedBits() > 64 ? !isNegative() : getSExtValue() > RHS; in sgt()
1323 if (isNegative()) in getMinSignedBits()
1388 return isNegative() ? countLeadingOnes() : countLeadingZeros(); in getNumSignBits()
1582 if (isNegative()) in abs()

12345678910