Home
last modified time | relevance | path

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

123

/external/mesa3d/src/util/
Droundeven_test.c55 { nextafter(0.5, 0.0), 0.0 }, in main()
57 { nextafter(0.5, 1.0), 1.0 }, in main()
59 { nextafter(1.5, 1.0), 1.0 }, in main()
61 { nextafter(1.5, 2.0), 2.0 }, in main()
63 { nextafter(2.5, 2.0), 2.0 }, in main()
65 { nextafter(2.5, 3.0), 3.0 }, in main()
/external/catch2/projects/SelfTest/UsageTests/
DMatchers.tests.cpp90 float nextafter(float from, float to) in nextafter() function
95 double nextafter(double from, double to) in nextafter() function
97 return ::nextafter(from, to); in nextafter()
100 using std::nextafter;
344 REQUIRE_THAT(nextafter(1.f, 2.f), WithinULP(1.f, 1));
345 REQUIRE_THAT(nextafter(1.f, 0.f), WithinULP(1.f, 1));
346 REQUIRE_THAT(nextafter(1.f, 2.f), !WithinULP(1.f, 0));
386 REQUIRE_THAT(nextafter(1., 2.), WithinULP(1., 1));
387 REQUIRE_THAT(nextafter(1., 0.), WithinULP(1., 1));
388 REQUIRE_THAT(nextafter(1., 2.), !WithinULP(1., 0));
/external/tensorflow/tensorflow/core/kernels/
Dnextafter_op.cc21 REGISTER2(BinaryOp, CPU, "NextAfter", functor::nextafter, float, double);
27 BinaryOp<SYCLDevice, functor::nextafter<TYPE>>);
34 REGISTER2(BinaryOp, GPU, "NextAfter", functor::nextafter, float, double);
Dnextafter_op.h30 return std::nextafter(x1, x2); in EIGEN_EMPTY_STRUCT_CTOR()
35 struct nextafter : base<T, nextafter_op<T>> {}; struct
Dnextafter_op_gpu.cu.cc24 DEFINE_BINARY2(nextafter, float, double);
/external/ltp/testcases/misc/math/nextafter/
Dnextafter01.c67 answer = nextafter(1.0, 1.1); in main()
79 answer = nextafter(1.0, 0.9); in main()
90 answer = nextafter(1.0, 1.0); in main()
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_NextAfter.pbtxt5 This operation returns the same result as the C++ std::nextafter function.
10 Equivalent to C++ std::nextafter function.
/external/libcxx/test/libcxx/numerics/
Dclamp_to_integral.pass.cpp37 {nextafter(static_cast<double>(Lim::max()), INFINITY), Lim::max(), false}, in test()
67 {nextafter(static_cast<float>(Lim::max()), INFINITY), Lim::max(), false}, in test_float()
/external/clang/lib/Headers/
D__clang_cuda_math_forward_declares.h149 __DEVICE__ double nextafter(double, double);
150 __DEVICE__ float nextafter(float, float);
242 using ::nextafter;
Dtgmath.h1055 __tg_nextafter(double __x, double __y) {return nextafter(__x, __y);} in __tg_nextafter()
1061 #undef nextafter
1062 #define nextafter(__x, __y) __tg_nextafter(__tg_promote2((__x), (__y))(__x), \ macro
/external/tensorflow/tensorflow/core/api_def/python_api/
Dapi_def_NextAfter.pbtxt4 name: "math.nextafter"
/external/libcxx/test/std/depr/depr.c.headers/
Dmath_h.pass.cpp90 Ambiguous nextafter(Ambiguous, Ambiguous){ return Ambiguous(); } in nextafter() function
1266 static_assert((std::is_same<decltype(nextafter((float)0, (float)0)), float>::value), ""); in test_nextafter()
1267 static_assert((std::is_same<decltype(nextafter((bool)0, (float)0)), double>::value), ""); in test_nextafter()
1268 …static_assert((std::is_same<decltype(nextafter((unsigned short)0, (double)0)), double>::value), ""… in test_nextafter()
1269 …static_assert((std::is_same<decltype(nextafter((int)0, (long double)0)), long double>::value), ""); in test_nextafter()
1270 … static_assert((std::is_same<decltype(nextafter((float)0, (unsigned int)0)), double>::value), ""); in test_nextafter()
1271 static_assert((std::is_same<decltype(nextafter((double)0, (long)0)), double>::value), ""); in test_nextafter()
1272 …static_assert((std::is_same<decltype(nextafter((long double)0, (unsigned long)0)), long double>::v… in test_nextafter()
1273 static_assert((std::is_same<decltype(nextafter((int)0, (long long)0)), double>::value), ""); in test_nextafter()
1274 …static_assert((std::is_same<decltype(nextafter((int)0, (unsigned long long)0)), double>::value), "… in test_nextafter()
[all …]
/external/tensorflow/tensorflow/python/ops/
Dmath_ops_test.py662 self.assertAllEqual(math_ops.nextafter(one, two) - one, eps)
663 self.assertAllLess(math_ops.nextafter(one, zero) - one, 0)
665 math_ops.is_nan(math_ops.nextafter(nan, one)), [True])
667 math_ops.is_nan(math_ops.nextafter(one, nan)), [True])
668 self.assertAllEqual(math_ops.nextafter(one, one), one)
681 self.assertAllEqual(math_ops.nextafter(one, two) - one, eps_const)
Dmath_grad_test.py432 y = math_ops.nextafter(x1, x2)
464 lambda x: math_ops.nextafter(x, x2), [x1])) # pylint: disable=cell-var-from-loop
474 lambda x: math_ops.nextafter(x, x2), [x1])) # pylint: disable=cell-var-from-loop
/external/ltp/testcases/misc/math/
D.gitignore43 /nextafter/nextafter01
/external/skqp/tests/
DSkGaussFilterTest.cpp65 const double maxSigma = nextafter(2.0, 0.0); in DEF_TEST()
/external/skia/tests/
DSkGaussFilterTest.cpp65 const double maxSigma = nextafter(2.0, 0.0); in DEF_TEST()
/external/libcxx/test/std/numerics/c.math/
Dcmath.pass.cpp93 Ambiguous nextafter(Ambiguous, Ambiguous){ return Ambiguous(); } in nextafter() function
1317 static_assert((std::is_same<decltype(std::nextafter((float)0, (float)0)), float>::value), ""); in test_nextafter()
1318 static_assert((std::is_same<decltype(std::nextafter((bool)0, (float)0)), double>::value), ""); in test_nextafter()
1319 …static_assert((std::is_same<decltype(std::nextafter((unsigned short)0, (double)0)), double>::value… in test_nextafter()
1320 …static_assert((std::is_same<decltype(std::nextafter((int)0, (long double)0)), long double>::value)… in test_nextafter()
1321 …static_assert((std::is_same<decltype(std::nextafter((float)0, (unsigned int)0)), double>::value), … in test_nextafter()
1322 static_assert((std::is_same<decltype(std::nextafter((double)0, (long)0)), double>::value), ""); in test_nextafter()
1323 …static_assert((std::is_same<decltype(std::nextafter((long double)0, (unsigned long)0)), long doubl… in test_nextafter()
1324 … static_assert((std::is_same<decltype(std::nextafter((int)0, (long long)0)), double>::value), ""); in test_nextafter()
1325 …static_assert((std::is_same<decltype(std::nextafter((int)0, (unsigned long long)0)), double>::valu… in test_nextafter()
[all …]
/external/clang/test/CodeGen/
Dlibcall-declarations.c139 double nextafter(double, double);
289 F(lroundl), F(nearbyint), F(nearbyintf), F(nearbyintl), F(nextafter),
/external/tensorflow/tensorflow/python/ops/distributions/
Dlaplace.py168 minval=np.nextafter(self.dtype.as_numpy_dtype(-1.),
/external/libcxx/include/
Dcmath260 floating_point nextafter (arithmetic x, arithmetic y);
448 using ::nextafter;
636 if (__r >= ::nextafter(static_cast<_RealT>(_MaxVal), INFINITY)) {
Dmath.h1382 inline _LIBCPP_INLINE_VISIBILITY float nextafter(float __lcpp_x, float __lcpp_y) _NOEXCEPT … in nextafter() function
1383 inline _LIBCPP_INLINE_VISIBILITY long double nextafter(long double __lcpp_x, long double __lcpp_y) … in nextafter() function
1393 nextafter(_A1 __lcpp_x, _A2 __lcpp_y) _NOEXCEPT in nextafter() function
1398 return ::nextafter((__result_type)__lcpp_x, (__result_type)__lcpp_y); in nextafter()
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dstateless_random_ops.cc178 xla::ConstantR0<float>(builder, std::nextafter(-1.0f, 0.0f)), in Compile()
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dsimple_orc_jit.cc303 REGISTER_LIBM_SYMBOL(nextafter, double (*)(double, double)); in RegisterKnownJITSymbols()
/external/swiftshader/third_party/SPIRV-Tools/test/
Dext_inst.opencl_test.cpp146 CASE2(Nextafter, nextafter),

123