Home
last modified time | relevance | path

Searched refs:IsNaN (Results 1 – 25 of 39) sorted by relevance

12

/external/syzkaller/vendor/github.com/google/go-cmp/cmp/internal/value/
Dsort.go53 return fx < fy || math.IsNaN(fx) && !math.IsNaN(fy)
57 if rx == ry || (math.IsNaN(rx) && math.IsNaN(ry)) {
58 return ix < iy || math.IsNaN(ix) && !math.IsNaN(iy)
60 return rx < ry || math.IsNaN(rx) && !math.IsNaN(ry)
/external/syzkaller/vendor/github.com/google/go-cmp/cmp/cmpopts/
Dequate.go47 if margin < 0 || fraction < 0 || math.IsNaN(margin) || math.IsNaN(fraction) {
60 return !math.IsNaN(x) && !math.IsNaN(y) && !math.IsInf(x, 0) && !math.IsInf(y, 0)
85 return math.IsNaN(x) && math.IsNaN(y)
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/number/
DIsNaN.java11 public final class IsNaN extends TypeSafeMatcher<Double> { class
13 private IsNaN() { } in IsNaN() method in IsNaN
36 return new IsNaN(); in notANumber()
/external/protobuf/src/google/protobuf/stubs/
Dmathlimits.h121 static bool IsNaN(const Type x);
160 static bool IsNaN(const Type /*x*/) { return false; } \
227 static bool IsNaN(const Type x) { return _isnan(x); } \
234 static bool IsNaN(const Type x) { return isnan(x); } \
Dmathutil.h102 return MathLimits<T>::IsNaN(x) || x > y ? x : y; in Max()
/external/protobuf/src/google/protobuf/util/
Dfield_comparator.cc174 MathLimits<T>::IsNaN(value_1) && MathLimits<T>::IsNaN(value_2)) { in CompareDoubleOrFloat()
180 MathLimits<T>::IsNaN(value_1) && MathLimits<T>::IsNaN(value_2)) { in CompareDoubleOrFloat()
/external/ImageMagick/MagickCore/
Dmagick-type.h176 # define IsNaN(a) isnan(a) macro
179 # define IsNaN(a) _isnan(a) macro
181 # define IsNaN(a) ((a) != (a)) macro
Dmorphology.c2408 if ( IsNaN(kernel1->values[i]) && !IsNaN(kernel2->values[i]) ) in SameKernelInfo()
2410 if ( IsNaN(kernel2->values[i]) && !IsNaN(kernel1->values[i]) ) in SameKernelInfo()
2736 if (!IsNaN(*k)) in MorphologyPrimitive()
2748 if (!IsNaN(*k)) in MorphologyPrimitive()
2941 if (!IsNaN(*k)) in MorphologyPrimitive()
2961 if (!IsNaN(*k)) in MorphologyPrimitive()
2990 if (!IsNaN(*k) && (*k >= 0.5)) in MorphologyPrimitive()
3020 if (!IsNaN(*k) && (*k > 0.5)) in MorphologyPrimitive()
3053 if (!IsNaN(*k)) in MorphologyPrimitive()
3095 if (!IsNaN(*k) && (*k >= 0.5)) in MorphologyPrimitive()
[all …]
/external/vixl/src/
Dutils-vixl.h368 inline bool IsNaN(float value) { return std::isnan(value); } in IsNaN() function
370 inline bool IsNaN(double value) { return std::isnan(value); } in IsNaN() function
372 inline bool IsNaN(Float16 value) { return Float16Classify(value) == FP_NAN; } in IsNaN() function
387 if (IsNaN(num) && ((raw & kFP64QuietNaNMask) == 0)) { in IsSignallingNaN()
397 if (IsNaN(num) && ((raw & kFP32QuietNaNMask) == 0)) { in IsSignallingNaN()
406 return IsNaN(num) && ((Float16ToRawbits(num) & kFP16QuietNaNMask) == 0); in IsSignallingNaN()
412 return IsNaN(num) && !IsSignallingNaN(num); in IsQuietNaN()
419 VIXL_ASSERT(IsNaN(num)); in ToQuietNaN()
426 VIXL_ASSERT(IsNaN(num)); in ToQuietNaN()
433 VIXL_ASSERT(IsNaN(num)); in ToQuietNaN()
Dutils-vixl.cc245 if (IsNaN(*this) || IsNaN(rhs)) { in operator ==()
/external/vixl/test/aarch32/
Dtest-utils-aarch32.cc216 if (IsNaN(expected) || (expected == 0.0)) { in EqualFP32()
244 if (IsNaN(expected) || (expected == 0.0)) { in EqualFP64()
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/number/
DIsNanTest.java7 import static org.hamcrest.number.IsNaN.notANumber;
/external/v8/src/compiler/
Dmachine-operator-reducer.cc324 if (m.right().IsNaN()) { // x - NaN => NaN in Reduce()
328 if (m.left().IsNaN()) { // NaN - x => NaN in Reduce()
367 if (m.right().IsNaN()) { // x - NaN => NaN in Reduce()
371 if (m.left().IsNaN()) { // NaN - x => NaN in Reduce()
407 if (m.right().IsNaN()) { // x * NaN => NaN in Reduce()
426 if (m.right().IsNaN()) { // x / NaN => NaN in Reduce()
430 if (m.left().IsNaN()) { // NaN / x => NaN in Reduce()
457 if (m.right().IsNaN()) { // x % NaN => NaN in Reduce()
460 if (m.left().IsNaN()) { // NaN % x => NaN in Reduce()
500 if (m.right().IsNaN()) { in Reduce()
[all …]
/external/vixl/src/aarch64/
Dlogic-aarch64.cc3689 if (IsNaN(result)) { in FPAdd()
3707 VIXL_ASSERT(!IsNaN(op1) && !IsNaN(op2)); in FPSub()
3723 VIXL_ASSERT(!IsNaN(op1) && !IsNaN(op2)); in FPMul()
3759 if (IsNaN(result)) { in FPMulAdd()
3782 VIXL_ASSERT(!IsNaN(result)); in FPMulAdd()
3797 VIXL_ASSERT(!IsNaN(op1) && !IsNaN(op2)); in FPDiv()
3806 if (!IsNaN(op1)) { in FPDiv()
3821 if (IsNaN(op)) { in FPSqrt()
3835 if (IsNaN(result)) return result; in FPMax()
3855 return IsNaN(result) ? result : FPMax(a, b); in FPMaxNM()
[all …]
Dsimulator-aarch64.h3183 VIXL_ASSERT(IsNaN(op));
3196 } else if (IsNaN(op1)) {
3199 } else if (IsNaN(op2)) {
3215 } else if (IsNaN(op1)) {
3218 } else if (IsNaN(op2)) {
3221 } else if (IsNaN(op3)) {
/external/v8/testing/
Dgmock-support.h85 MATCHER(IsNaN, std::string(negation ? "isn't" : "is") + " not a number") {
/external/protobuf/src/google/protobuf/compiler/csharp/
Dcsharp_field_base.cc326 } else if (MathLimits<double>::IsNaN(value)) { in default_value()
337 } else if (MathLimits<float>::IsNaN(value)) { in default_value()
/external/protobuf/src/google/protobuf/util/internal/
Dutility.cc328 if (MathLimits<double>::IsNaN(value)) return "NaN"; in DoubleAsString()
345 MathLimits<double>::IsNaN(double_value)) in SafeStrToFloat()
Ddatapiece.cc99 if (MathLimits<From>::IsNaN(before)) { in FloatingPointConvertAndCheck()
/external/vixl/test/aarch64/
Dtest-utils-aarch64.cc98 if (IsNaN(expected) || IsZero(expected)) { in EqualFP16()
120 if (IsNaN(expected) || (expected == 0.0)) { in EqualFP32()
143 if (IsNaN(expected) || (expected == 0.0)) { in EqualFP64()
Dtest-api-aarch64.cc78 VIXL_CHECK(IsNaN(vixl::aarch64::kFP16DefaultNaN) == in TEST()
79 IsNaN(vixl::kFP16DefaultNaN)); in TEST()
Dtest-assembler-aarch64.cc11515 if (IsNaN(n)) { in MinMaxHelper()
11518 } else if (IsNaN(m)) { in MinMaxHelper()
11524 if (IsNaN(n) && !IsNaN(m)) { in MinMaxHelper()
11527 } else if (!IsNaN(n) && IsNaN(m)) { in MinMaxHelper()
11553 if (IsNaN(n) && ((raw_n & kFP32QuietNaNMask) == 0)) { in MinMaxHelper()
11556 } else if (IsNaN(m) && ((raw_m & kFP32QuietNaNMask) == 0)) { in MinMaxHelper()
11560 if (IsNaN(n)) { in MinMaxHelper()
11563 } else if (IsNaN(m)) { in MinMaxHelper()
11569 if (IsNaN(n) && !IsNaN(m)) { in MinMaxHelper()
11572 } else if (!IsNaN(n) && IsNaN(m)) { in MinMaxHelper()
[all …]
/external/v8/src/
Dobjects-debug.cc838 CHECK(year()->IsUndefined(isolate) || year()->IsSmi() || year()->IsNaN()); in JSDateVerify()
839 CHECK(month()->IsUndefined(isolate) || month()->IsSmi() || month()->IsNaN()); in JSDateVerify()
840 CHECK(day()->IsUndefined(isolate) || day()->IsSmi() || day()->IsNaN()); in JSDateVerify()
842 weekday()->IsNaN()); in JSDateVerify()
843 CHECK(hour()->IsUndefined(isolate) || hour()->IsSmi() || hour()->IsNaN()); in JSDateVerify()
844 CHECK(min()->IsUndefined(isolate) || min()->IsSmi() || min()->IsNaN()); in JSDateVerify()
845 CHECK(sec()->IsUndefined(isolate) || sec()->IsSmi() || sec()->IsNaN()); in JSDateVerify()
847 cache_stamp()->IsNaN()); in JSDateVerify()
/external/protobuf/src/google/protobuf/
Dtext_format_unittest.cc905 EXPECT_TRUE(MathLimits<double>::IsNaN(message.repeated_double(11))); in TEST_F()
906 EXPECT_TRUE(MathLimits<double>::IsNaN(message.repeated_double(12))); in TEST_F()
/external/v8/src/asmjs/
Dasm-js.cc67 if (!value->IsNaN()) return false; in AreStdlibMembersValid()

12