Home
last modified time | relevance | path

Searched refs:isinf (Results 1 – 25 of 248) sorted by relevance

12345678910

/external/swiftshader/third_party/LLVM/autoconf/m4/
Dfunc_isinf.m42 # This function determins if the the isinf function isavailable on this
7 [isinf], [<math.h>],
8 [float f; isinf(f);])
10 AC_DEFINE([HAVE_ISINF_IN_MATH_H],1,[Set to 1 if the isinf function is found in <math.h>])
14 [isinf], [<cmath>],
15 [float f; isinf(f);])
17 AC_DEFINE([HAVE_ISINF_IN_CMATH],1,[Set to 1 if the isinf function is found in <cmath>])
21 [std::isinf], [<cmath>],
22 [float f; std::isinf(f)}])
24 AC_DEFINE([HAVE_STD_ISINF_IN_CMATH],1,[Set to 1 if the std::isinf function is found in <cmath>])
/external/libcxx/test/std/numerics/complex.number/complex.transcendentals/
Dacosh.pass.cpp66 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
68 assert(std::isinf(r.real())); in test_edges()
80 …else if (std::isinf(testcases[i].real()) && testcases[i].real() < 0 && std::isfinite(testcases[i].… in test_edges()
82 assert(std::isinf(r.real())); in test_edges()
89 …else if (std::isinf(testcases[i].real()) && testcases[i].real() > 0 && std::isfinite(testcases[i].… in test_edges()
91 assert(std::isinf(r.real())); in test_edges()
96 …else if (std::isinf(testcases[i].real()) && testcases[i].real() < 0 && std::isinf(testcases[i].ima… in test_edges()
98 assert(std::isinf(r.real())); in test_edges()
105 …else if (std::isinf(testcases[i].real()) && testcases[i].real() > 0 && std::isinf(testcases[i].ima… in test_edges()
107 assert(std::isinf(r.real())); in test_edges()
[all …]
Dacos.pass.cpp53 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
56 assert(std::isinf(r.imag())); in test_edges()
64 …else if (std::isinf(testcases[i].real()) && testcases[i].real() < 0 && std::isfinite(testcases[i].… in test_edges()
67 assert(std::isinf(r.imag())); in test_edges()
70 …else if (std::isinf(testcases[i].real()) && testcases[i].real() > 0 && std::isfinite(testcases[i].… in test_edges()
74 assert(std::isinf(r.imag())); in test_edges()
77 …else if (std::isinf(testcases[i].real()) && testcases[i].real() < 0 && std::isinf(testcases[i].ima… in test_edges()
80 assert(std::isinf(r.imag())); in test_edges()
83 …else if (std::isinf(testcases[i].real()) && testcases[i].real() > 0 && std::isinf(testcases[i].ima… in test_edges()
86 assert(std::isinf(r.imag())); in test_edges()
[all …]
Dcosh.pass.cpp47 else if (testcases[i].real() == 0 && std::isinf(testcases[i].imag())) in test_edges()
57 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
67 else if (std::isinf(testcases[i].real()) && testcases[i].imag() == 0) in test_edges()
69 assert(std::isinf(r.real())); in test_edges()
74 else if (std::isinf(testcases[i].real()) && std::isfinite(testcases[i].imag())) in test_edges()
76 assert(std::isinf(r.real())); in test_edges()
78 assert(std::isinf(r.imag())); in test_edges()
81 else if (std::isinf(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
83 assert(std::isinf(r.real())); in test_edges()
86 else if (std::isinf(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
[all …]
Dsinh.pass.cpp48 else if (testcases[i].real() == 0 && std::isinf(testcases[i].imag())) in test_edges()
53 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
68 else if (std::isinf(testcases[i].real()) && testcases[i].imag() == 0) in test_edges()
70 assert(std::isinf(r.real())); in test_edges()
75 else if (std::isinf(testcases[i].real()) && std::isfinite(testcases[i].imag())) in test_edges()
77 assert(std::isinf(r.real())); in test_edges()
79 assert(std::isinf(r.imag())); in test_edges()
82 else if (std::isinf(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
84 assert(std::isinf(r.real())); in test_edges()
87 else if (std::isinf(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
[all …]
Dsqrt.pass.cpp48 else if (std::isinf(testcases[i].imag())) in test_edges()
50 assert(std::isinf(r.real())); in test_edges()
52 assert(std::isinf(r.imag())); in test_edges()
60 …else if (std::isinf(testcases[i].real()) && testcases[i].real() < 0 && std::isfinite(testcases[i].… in test_edges()
64 assert(std::isinf(r.imag())); in test_edges()
67 …else if (std::isinf(testcases[i].real()) && testcases[i].real() > 0 && std::isfinite(testcases[i].… in test_edges()
69 assert(std::isinf(r.real())); in test_edges()
74 …else if (std::isinf(testcases[i].real()) && testcases[i].real() < 0 && std::isnan(testcases[i].ima… in test_edges()
77 assert(std::isinf(r.imag())); in test_edges()
79 …else if (std::isinf(testcases[i].real()) && testcases[i].real() > 0 && std::isnan(testcases[i].ima… in test_edges()
[all …]
Dexp.pass.cpp47 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
57 … else if (std::isinf(testcases[i].real()) && testcases[i].real() > 0 && testcases[i].imag() == 0) in test_edges()
59 assert(std::isinf(r.real())); in test_edges()
64 …else if (std::isinf(testcases[i].real()) && testcases[i].real() < 0 && std::isinf(testcases[i].ima… in test_edges()
69 …else if (std::isinf(testcases[i].real()) && testcases[i].real() > 0 && std::isinf(testcases[i].ima… in test_edges()
71 assert(std::isinf(r.real())); in test_edges()
74 …else if (std::isinf(testcases[i].real()) && testcases[i].real() < 0 && std::isnan(testcases[i].ima… in test_edges()
79 …else if (std::isinf(testcases[i].real()) && testcases[i].real() > 0 && std::isnan(testcases[i].ima… in test_edges()
81 assert(std::isinf(r.real())); in test_edges()
Dasin.pass.cpp47 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
51 assert(std::isinf(r.imag())); in test_edges()
65 else if (std::isinf(testcases[i].real()) && std::isfinite(testcases[i].imag())) in test_edges()
71 assert(std::isinf(r.imag())); in test_edges()
74 else if (std::isinf(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
80 assert(std::isinf(r.imag())); in test_edges()
83 else if (std::isinf(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
86 assert(std::isinf(r.imag())); in test_edges()
94 else if (std::isnan(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
97 assert(std::isinf(r.imag())); in test_edges()
Dasinh.pass.cpp56 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
58 assert(std::isinf(r.real())); in test_edges()
70 else if (std::isinf(testcases[i].real()) && std::isfinite(testcases[i].imag())) in test_edges()
72 assert(std::isinf(r.real())); in test_edges()
77 else if (std::isinf(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
79 assert(std::isinf(r.real())); in test_edges()
86 else if (std::isinf(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
88 assert(std::isinf(r.real())); in test_edges()
103 else if (std::isnan(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
105 assert(std::isinf(r.real())); in test_edges()
Dlog.pass.cpp46 assert(std::isinf(r.real())); in test_edges()
55 assert(std::isinf(r.real())); in test_edges()
61 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
63 assert(std::isinf(r.real())); in test_edges()
75 …else if (std::isinf(testcases[i].real()) && testcases[i].real() < 0 && std::isfinite(testcases[i].… in test_edges()
77 assert(std::isinf(r.real()) && r.real() > 0); in test_edges()
83 …else if (std::isinf(testcases[i].real()) && testcases[i].real() > 0 && std::isfinite(testcases[i].… in test_edges()
85 assert(std::isinf(r.real()) && r.real() > 0); in test_edges()
Datanh.pass.cpp55 assert(std::isinf(r.real())); in test_edges()
60 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
74 else if (std::isinf(testcases[i].real()) && std::isfinite(testcases[i].imag())) in test_edges()
83 else if (std::isinf(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
92 else if (std::isinf(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
103 else if (std::isnan(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
Dtanh.pass.cpp48 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
58 else if (std::isinf(testcases[i].real()) && std::isfinite(testcases[i].imag())) in test_edges()
64 else if (std::isinf(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
69 else if (std::isinf(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
/external/swiftshader/third_party/LLVM/lib/Support/
DIsInf.cpp22 using std::isinf;
27 static int isinf(double x) { return !finite(x) && x==x; } in isinf() function
30 #define isinf(X) (!_finite(X)) macro
35 static int isinf(double x) { return !finite(x) && x==x; } in isinf() function
39 static int isinf(double x) { return ((x) == INFINITY) || ((x) == -INFINITY); } in isinf() function
46 int IsInf(float f) { return isinf(f); } in IsInf()
47 int IsInf(double d) { return isinf(d); } in IsInf()
/external/eigen/test/
Dfastmath.cpp25 …template<typename T> bool (isinf)(T x) { return _fpclass(x)==_FPCLASS_NINF || _fpclass(x)==_FPCLAS…
38 …<< m(3) << ") = "; check((std::isinf)(m(3)),false); std::cout << " ; numext::isinf = "; … in check_inf_nan()
47 VERIFY( !(numext::isinf)(m(3)) ); in check_inf_nan()
57 …<< m(4) << ") = "; check((std::isinf)(m(4)),true); std::cout << " ; numext::isinf = "; … in check_inf_nan()
66 VERIFY( (numext::isinf)(m(4)) ); in check_inf_nan()
75 …<< m(3) << ") = "; check((std::isinf)(m(3)),false); std::cout << " ; numext::isinf = "; … in check_inf_nan()
84 VERIFY( !(numext::isinf)(m(3)) ); in check_inf_nan()
Dhalf_float.cpp67 VERIFY(!(numext::isinf)(float(half(65504.0f)))); // Largest finite number. in test_conversion()
69 VERIFY((numext::isinf)(float(half(__half(0xfc00))))); in test_conversion()
71 VERIFY((numext::isinf)(float(half(__half(0x7c00))))); in test_conversion()
77 VERIFY((numext::isinf)(float(half(1.0 / 0.0)))); in test_conversion()
78 VERIFY((numext::isinf)(float(half(-1.0 / 0.0)))); in test_conversion()
82 VERIFY(!(numext::isinf)(half(__half(0x7bff)))); in test_conversion()
84 VERIFY((numext::isinf)(half(__half(0xfc00)))); in test_conversion()
86 VERIFY((numext::isinf)(half(__half(0x7c00)))); in test_conversion()
92 VERIFY((numext::isinf)(half(1.0 / 0.0))); in test_conversion()
93 VERIFY((numext::isinf)(half(-1.0 / 0.0))); in test_conversion()
/external/libchrome/mojo/public/cpp/bindings/tests/
Dconstant_unittest.cc30 EXPECT_TRUE(std::isinf(kDoubleInfinity)); in TEST()
31 EXPECT_TRUE(std::isinf(kDoubleNegativeInfinity)); in TEST()
34 EXPECT_TRUE(std::isinf(kFloatInfinity)); in TEST()
35 EXPECT_TRUE(std::isinf(kFloatNegativeInfinity)); in TEST()
/external/libxml2/include/
Dwin32config.h47 #ifndef isinf
48 #define isinf(d) ((_fpclass(d) == _FPCLASS_PINF) ? 1 \ macro
56 #ifndef isinf
57 static int isinf (double d) { in isinf() function
/external/libxml2/win32/VC10/
Dconfig.h46 #ifndef isinf
47 #define isinf(d) ((_fpclass(d) == _FPCLASS_PINF) ? 1 \ macro
55 #ifndef isinf
56 static int isinf (double d) { in isinf() function
/external/tensorflow/tensorflow/core/kernels/
Dcwise_op_isinf.cc19 REGISTER3(UnaryOp, CPU, "IsInf", functor::isinf, float, Eigen::half, double);
22 REGISTER3(UnaryOp, GPU, "IsInf", functor::isinf, float, Eigen::half, double);
26 REGISTER2(UnaryOp, SYCL, "IsInf", functor::isinf, float, double);
/external/protobuf/src/google/protobuf/stubs/
Dmathlimits.h233 static bool IsFinite(const Type x) { return !isinf(x) && !isnan(x); } \
235 static bool IsInf(const Type x) { return isinf(x); } \
236 static bool IsPosInf(const Type x) { return isinf(x) && x > 0; } \
237 static bool IsNegInf(const Type x) { return isinf(x) && x < 0; }
/external/python/cpython2/Lib/test/
Dtest_cmath.py81 if math.isinf(a):
490 self.assertFalse(cmath.isinf(1))
491 self.assertFalse(cmath.isinf(1j))
492 self.assertFalse(cmath.isinf(NAN))
493 self.assertTrue(cmath.isinf(INF))
494 self.assertTrue(cmath.isinf(complex(INF, 0)))
495 self.assertTrue(cmath.isinf(complex(0, INF)))
496 self.assertTrue(cmath.isinf(complex(INF, INF)))
497 self.assertTrue(cmath.isinf(complex(NAN, INF)))
498 self.assertTrue(cmath.isinf(complex(INF, NAN)))
/external/libcxx/test/std/numerics/complex.number/complex.value.ops/
Darg.pass.cpp84 if (std::isinf(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
101 else if (std::isinf(testcases[i].real())) in test_edges()
/external/python/cpython3/Lib/test/
Dtest_cmath.py118 if math.isinf(a):
569 self.assertFalse(cmath.isinf(1))
570 self.assertFalse(cmath.isinf(1j))
571 self.assertFalse(cmath.isinf(NAN))
572 self.assertTrue(cmath.isinf(INF))
573 self.assertTrue(cmath.isinf(complex(INF, 0)))
574 self.assertTrue(cmath.isinf(complex(0, INF)))
575 self.assertTrue(cmath.isinf(complex(INF, INF)))
576 self.assertTrue(cmath.isinf(complex(NAN, INF)))
577 self.assertTrue(cmath.isinf(complex(INF, NAN)))
/external/deqp-deps/glslang/Test/baseResults/
Dhlsl.isfinite.frag.out23 0:8 isinf ( temp bool)
40 0:13 isinf ( temp bool)
54 0:14 isinf ( temp 2-component vector of bool)
68 0:15 isinf ( temp 3-component vector of bool)
111 0:8 isinf ( temp bool)
128 0:13 isinf ( temp bool)
142 0:14 isinf ( temp 2-component vector of bool)
156 0:15 isinf ( temp 3-component vector of bool)
/external/v8/src/builtins/
Dbuiltins-number.cc46 if (std::isinf(value_number)) { in BUILTIN()
100 if (std::isinf(value_number)) { in BUILTIN()
170 if (std::isinf(value_number)) { in BUILTIN()
234 if (std::isinf(value_number)) { in BUILTIN()

12345678910