Home
last modified time | relevance | path

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

123456

/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.cpp58 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
60 assert(std::isinf(r.real())); in test_edges()
72 …else if (std::isinf(testcases[i].real()) && testcases[i].real() < 0 && std::isfinite(testcases[i].… in test_edges()
74 assert(std::isinf(r.real())); in test_edges()
81 …else if (std::isinf(testcases[i].real()) && testcases[i].real() > 0 && std::isfinite(testcases[i].… in test_edges()
83 assert(std::isinf(r.real())); in test_edges()
88 …else if (std::isinf(testcases[i].real()) && testcases[i].real() < 0 && std::isinf(testcases[i].ima… in test_edges()
90 assert(std::isinf(r.real())); in test_edges()
97 …else if (std::isinf(testcases[i].real()) && testcases[i].real() > 0 && std::isinf(testcases[i].ima… in test_edges()
99 assert(std::isinf(r.real())); in test_edges()
[all …]
Dacos.pass.cpp54 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
57 assert(std::isinf(r.imag())); in test_edges()
65 …else if (std::isinf(testcases[i].real()) && testcases[i].real() < 0 && std::isfinite(testcases[i].… in test_edges()
68 assert(std::isinf(r.imag())); in test_edges()
71 …else if (std::isinf(testcases[i].real()) && testcases[i].real() > 0 && std::isfinite(testcases[i].… in test_edges()
75 assert(std::isinf(r.imag())); in test_edges()
78 …else if (std::isinf(testcases[i].real()) && testcases[i].real() < 0 && std::isinf(testcases[i].ima… in test_edges()
81 assert(std::isinf(r.imag())); in test_edges()
84 …else if (std::isinf(testcases[i].real()) && testcases[i].real() > 0 && std::isinf(testcases[i].ima… in test_edges()
87 assert(std::isinf(r.imag())); in test_edges()
[all …]
Dsinh.pass.cpp49 else if (testcases[i].real() == 0 && std::isinf(testcases[i].imag())) in test_edges()
54 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
69 else if (std::isinf(testcases[i].real()) && testcases[i].imag() == 0) in test_edges()
71 assert(std::isinf(r.real())); in test_edges()
76 else if (std::isinf(testcases[i].real()) && std::isfinite(testcases[i].imag())) in test_edges()
78 assert(std::isinf(r.real())); in test_edges()
80 assert(std::isinf(r.imag())); in test_edges()
83 else if (std::isinf(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
85 assert(std::isinf(r.real())); in test_edges()
88 else if (std::isinf(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
[all …]
Dcosh.pass.cpp48 else if (testcases[i].real() == 0 && std::isinf(testcases[i].imag())) in test_edges()
58 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 …]
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()
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 …]
Dasin.pass.cpp48 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
52 assert(std::isinf(r.imag())); in test_edges()
66 else if (std::isinf(testcases[i].real()) && std::isfinite(testcases[i].imag())) in test_edges()
72 assert(std::isinf(r.imag())); in test_edges()
75 else if (std::isinf(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
81 assert(std::isinf(r.imag())); in test_edges()
84 else if (std::isinf(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
87 assert(std::isinf(r.imag())); in test_edges()
95 else if (std::isnan(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
98 assert(std::isinf(r.imag())); in test_edges()
Dasinh.pass.cpp48 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
50 assert(std::isinf(r.real())); in test_edges()
62 else if (std::isinf(testcases[i].real()) && std::isfinite(testcases[i].imag())) in test_edges()
64 assert(std::isinf(r.real())); in test_edges()
69 else if (std::isinf(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
71 assert(std::isinf(r.real())); in test_edges()
78 else if (std::isinf(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
80 assert(std::isinf(r.real())); in test_edges()
95 else if (std::isnan(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
97 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.cpp56 assert(std::isinf(r.real())); in test_edges()
61 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
75 else if (std::isinf(testcases[i].real()) && std::isfinite(testcases[i].imag())) in test_edges()
84 else if (std::isinf(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
93 else if (std::isinf(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
104 else if (std::isnan(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
Dtanh.pass.cpp49 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
59 else if (std::isinf(testcases[i].real()) && std::isfinite(testcases[i].imag())) in test_edges()
65 else if (std::isinf(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
70 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/libxml2/win32/VC10/
Dconfig.h52 #ifndef isinf
53 #define isinf(d) ((_fpclass(d) == _FPCLASS_PINF) ? 1 \ macro
61 #ifndef isinf
62 static int isinf (double d) { in isinf() function
/external/libxml2/include/
Dwin32config.h53 #ifndef isinf
54 #define isinf(d) ((_fpclass(d) == _FPCLASS_PINF) ? 1 \ macro
62 #ifndef isinf
63 static int isinf (double d) { in isinf() function
/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/vulkan-validation-layers/libs/glm/detail/
D_fixes.hpp47 #ifdef isinf
48 #undef isinf
Dfunc_common.inl780 GLM_FUNC_QUALIFIER bool isinf( function
785 "'isinf' only accept floating-point inputs");
793 return std::isinf(x);
797 return isinf(double(x)) != 0;
799 return std::isinf(x);
804 GLM_FUNC_QUALIFIER typename detail::tvec2<T, P>::bool_type isinf function
811 "'isinf' only accept floating-point inputs");
814 isinf(x.x),
815 isinf(x.y));
819 GLM_FUNC_QUALIFIER typename detail::tvec3<T, P>::bool_type isinf function
[all …]
/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/protobuf/python/google/protobuf/internal/
Dgenerator_test.py96 def isinf(val): function
100 self.assertTrue(isinf(message.inf_double))
102 self.assertTrue(isinf(message.neg_inf_double))
106 self.assertTrue(isinf(message.inf_float))
108 self.assertTrue(isinf(message.neg_inf_float))
/external/eigen/Eigen/src/Core/
DGlobalFunctions.h87 …EIGEN_ARRAY_DECLARE_GLOBAL_UNARY(isnan,scalar_isnan_op,not-a-number test,\sa Eigen::isinf DOXCOMMA…
88 …_DECLARE_GLOBAL_UNARY(isinf,scalar_isinf_op,infinite value test,\sa Eigen::isnan DOXCOMMA Eigen::i…
89 …EIGEN_ARRAY_DECLARE_GLOBAL_UNARY(isfinite,scalar_isfinite_op,finite value test,\sa Eigen::isinf DO…
/external/libcxx/test/std/numerics/complex.number/
Dcases.h183 if (std::isinf(x.real()) || std::isinf(x.imag())) in classify()
208 if (std::isinf(x)) in classify()
/external/clang/lib/Headers/
D__clang_cuda_math_forward_declares.h107 __DEVICE__ bool isinf(double);
108 __DEVICE__ bool isinf(float);
219 using ::isinf;

123456