Home
last modified time | relevance | path

Searched refs:rounding_mode (Results 1 – 25 of 189) sorted by relevance

12345678

/external/angle/include/CL/
Dcl_half.h61 static inline cl_half cl_half_handle_overflow(cl_half_rounding_mode rounding_mode, in cl_half_handle_overflow() argument
64 if (rounding_mode == CL_HALF_RTZ) in cl_half_handle_overflow()
69 else if (rounding_mode == CL_HALF_RTP && sign) in cl_half_handle_overflow()
74 else if (rounding_mode == CL_HALF_RTN && !sign) in cl_half_handle_overflow()
87 static inline cl_half cl_half_handle_underflow(cl_half_rounding_mode rounding_mode, in cl_half_handle_underflow() argument
90 if (rounding_mode == CL_HALF_RTP && !sign) in cl_half_handle_underflow()
95 else if (rounding_mode == CL_HALF_RTN && sign) in cl_half_handle_underflow()
109 static inline cl_half cl_half_from_float(cl_float f, cl_half_rounding_mode rounding_mode) in cl_half_from_float() argument
161 return cl_half_handle_overflow(rounding_mode, sign); in cl_half_from_float()
167 return cl_half_handle_underflow(rounding_mode, sign); in cl_half_from_float()
[all …]
/external/mesa3d/include/CL/
Dcl_half.h61 static inline cl_half cl_half_handle_overflow(cl_half_rounding_mode rounding_mode, in cl_half_handle_overflow() argument
64 if (rounding_mode == CL_HALF_RTZ) in cl_half_handle_overflow()
69 else if (rounding_mode == CL_HALF_RTP && sign) in cl_half_handle_overflow()
74 else if (rounding_mode == CL_HALF_RTN && !sign) in cl_half_handle_overflow()
87 static inline cl_half cl_half_handle_underflow(cl_half_rounding_mode rounding_mode, in cl_half_handle_underflow() argument
90 if (rounding_mode == CL_HALF_RTP && !sign) in cl_half_handle_underflow()
95 else if (rounding_mode == CL_HALF_RTN && sign) in cl_half_handle_underflow()
109 static inline cl_half cl_half_from_float(cl_float f, cl_half_rounding_mode rounding_mode) in cl_half_from_float() argument
161 return cl_half_handle_overflow(rounding_mode, sign); in cl_half_from_float()
167 return cl_half_handle_underflow(rounding_mode, sign); in cl_half_from_float()
[all …]
/external/OpenCL-CTS/dependencies/ocl-headers/CL/
Dcl_half.h61 static inline cl_half cl_half_handle_overflow(cl_half_rounding_mode rounding_mode, in cl_half_handle_overflow() argument
64 if (rounding_mode == CL_HALF_RTZ) in cl_half_handle_overflow()
69 else if (rounding_mode == CL_HALF_RTP && sign) in cl_half_handle_overflow()
74 else if (rounding_mode == CL_HALF_RTN && !sign) in cl_half_handle_overflow()
87 static inline cl_half cl_half_handle_underflow(cl_half_rounding_mode rounding_mode, in cl_half_handle_underflow() argument
90 if (rounding_mode == CL_HALF_RTP && !sign) in cl_half_handle_underflow()
95 else if (rounding_mode == CL_HALF_RTN && sign) in cl_half_handle_underflow()
109 static inline cl_half cl_half_from_float(cl_float f, cl_half_rounding_mode rounding_mode) in cl_half_from_float() argument
161 return cl_half_handle_overflow(rounding_mode, sign); in cl_half_from_float()
167 return cl_half_handle_underflow(rounding_mode, sign); in cl_half_from_float()
[all …]
/external/ComputeLibrary/include/CL/
Dcl_half.h61 static inline cl_half cl_half_handle_overflow(cl_half_rounding_mode rounding_mode, in cl_half_handle_overflow() argument
64 if (rounding_mode == CL_HALF_RTZ) in cl_half_handle_overflow()
69 else if (rounding_mode == CL_HALF_RTP && sign) in cl_half_handle_overflow()
74 else if (rounding_mode == CL_HALF_RTN && !sign) in cl_half_handle_overflow()
87 static inline cl_half cl_half_handle_underflow(cl_half_rounding_mode rounding_mode, in cl_half_handle_underflow() argument
90 if (rounding_mode == CL_HALF_RTP && !sign) in cl_half_handle_underflow()
95 else if (rounding_mode == CL_HALF_RTN && sign) in cl_half_handle_underflow()
109 static inline cl_half cl_half_from_float(cl_float f, cl_half_rounding_mode rounding_mode) in cl_half_from_float() argument
161 return cl_half_handle_overflow(rounding_mode, sign); in cl_half_from_float()
167 return cl_half_handle_underflow(rounding_mode, sign); in cl_half_from_float()
[all …]
/external/OpenCL-Headers/CL/
Dcl_half.h61 static inline cl_half cl_half_handle_overflow(cl_half_rounding_mode rounding_mode, in cl_half_handle_overflow() argument
64 if (rounding_mode == CL_HALF_RTZ) in cl_half_handle_overflow()
69 else if (rounding_mode == CL_HALF_RTP && sign) in cl_half_handle_overflow()
74 else if (rounding_mode == CL_HALF_RTN && !sign) in cl_half_handle_overflow()
87 static inline cl_half cl_half_handle_underflow(cl_half_rounding_mode rounding_mode, in cl_half_handle_underflow() argument
90 if (rounding_mode == CL_HALF_RTP && !sign) in cl_half_handle_underflow()
95 else if (rounding_mode == CL_HALF_RTN && sign) in cl_half_handle_underflow()
109 static inline cl_half cl_half_from_float(cl_float f, cl_half_rounding_mode rounding_mode) in cl_half_from_float() argument
161 return cl_half_handle_overflow(rounding_mode, sign); in cl_half_from_float()
167 return cl_half_handle_underflow(rounding_mode, sign); in cl_half_from_float()
[all …]
/external/sdv/vsomeip/third_party/boost/numeric/interval/include/boost/numeric/interval/detail/
Dalpha_rounding_control.hpp41 typedef double rounding_mode; typedef
43 static void set_rounding_mode(const rounding_mode mode) in set_rounding_mode()
46 static void get_rounding_mode(rounding_mode& mode) in get_rounding_mode()
62 typedef unsigned int rounding_mode;
64 static void set_rounding_mode(const rounding_mode& mode) { write_rnd(mode); }
65 static void get_rounding_mode(rounding_mode& mode) { mode = read_rnd(); }
/external/llvm-libc/test/UnitTest/
DRoundingModeUtils.cpp36 rounding_mode = get_fe_rounding(mode); in ForceRoundingMode()
37 if (old_rounding_mode != rounding_mode) { in ForceRoundingMode()
38 int status = set_round(rounding_mode); in ForceRoundingMode()
46 if (old_rounding_mode != rounding_mode) in ~ForceRoundingMode()
/external/cronet/tot/third_party/llvm-libc/src/test/UnitTest/
DRoundingModeUtils.cpp36 rounding_mode = get_fe_rounding(mode); in ForceRoundingMode()
37 if (old_rounding_mode != rounding_mode) { in ForceRoundingMode()
38 int status = set_round(rounding_mode); in ForceRoundingMode()
46 if (old_rounding_mode != rounding_mode) in ~ForceRoundingMode()
/external/cronet/stable/third_party/llvm-libc/src/test/UnitTest/
DRoundingModeUtils.cpp36 rounding_mode = get_fe_rounding(mode); in ForceRoundingMode()
37 if (old_rounding_mode != rounding_mode) { in ForceRoundingMode()
38 int status = set_round(rounding_mode); in ForceRoundingMode()
46 if (old_rounding_mode != rounding_mode) in ~ForceRoundingMode()
/external/executorch/backends/arm/test/ops/
Dtest_div.py89 rounding_mode: Optional[str] = None,
91 if rounding_mode is None:
95 input=input_, other=other_, rounding_mode=rounding_mode
166 rounding_mode: Optional[str] = None,
177 rounding_mode: Optional[str] = None,
189 rounding_mode: Optional[str] = None,
/external/llvm-libc/test/src/math/
Datan_test.cpp27 auto test = [&](mpfr::RoundingMode rounding_mode) { in TEST_F() argument
28 mpfr::ForceRoundingMode __r(rounding_mode); in TEST_F()
51 2.0, rounding_mode)) { in TEST_F()
54 result, tol, rounding_mode)) { in TEST_F()
69 EXPECT_MPFR_MATCH(mpfr::Operation::Atan, mx, mr, 0.5, rounding_mode); in TEST_F()
Dsin_test.cpp59 auto test = [&](mpfr::RoundingMode rounding_mode) { in TEST_F() argument
60 mpfr::ForceRoundingMode __r(rounding_mode); in TEST_F()
83 0.5, rounding_mode)) { in TEST_F()
86 result, tol, rounding_mode)) { in TEST_F()
101 EXPECT_MPFR_MATCH(mpfr::Operation::Sin, mx, mr, 0.5, rounding_mode); in TEST_F()
Dcbrt_test.cpp28 auto test = [&](mpfr::RoundingMode rounding_mode) { in TEST_F() argument
29 mpfr::ForceRoundingMode force_rounding(rounding_mode); in TEST_F()
52 0.5, rounding_mode)) { in TEST_F()
55 result, ulp, rounding_mode)) { in TEST_F()
71 rounding_mode); in TEST_F()
Dcos_test.cpp70 auto test = [&](mpfr::RoundingMode rounding_mode) { in TEST_F() argument
71 mpfr::ForceRoundingMode __r(rounding_mode); in TEST_F()
94 0.5, rounding_mode)) { in TEST_F()
97 result, ulp, rounding_mode)) { in TEST_F()
113 rounding_mode); in TEST_F()
Dtan_test.cpp68 auto test = [&](mpfr::RoundingMode rounding_mode) { in TEST_F() argument
69 mpfr::ForceRoundingMode force_rounding(rounding_mode); in TEST_F()
92 0.5, rounding_mode)) { in TEST_F()
95 result, ulp, rounding_mode)) { in TEST_F()
111 rounding_mode); in TEST_F()
/external/cronet/stable/third_party/llvm-libc/src/test/src/math/
Dsin_test.cpp59 auto test = [&](mpfr::RoundingMode rounding_mode) { in TEST_F() argument
60 mpfr::ForceRoundingMode __r(rounding_mode); in TEST_F()
83 0.5, rounding_mode)) { in TEST_F()
86 result, tol, rounding_mode)) { in TEST_F()
101 EXPECT_MPFR_MATCH(mpfr::Operation::Sin, mx, mr, 0.5, rounding_mode); in TEST_F()
Dcos_test.cpp70 auto test = [&](mpfr::RoundingMode rounding_mode) { in TEST_F() argument
71 mpfr::ForceRoundingMode __r(rounding_mode); in TEST_F()
94 0.5, rounding_mode)) { in TEST_F()
97 result, ulp, rounding_mode)) { in TEST_F()
113 rounding_mode); in TEST_F()
Dcbrt_test.cpp28 auto test = [&](mpfr::RoundingMode rounding_mode) { in TEST_F() argument
29 mpfr::ForceRoundingMode force_rounding(rounding_mode); in TEST_F()
52 0.5, rounding_mode)) { in TEST_F()
55 result, ulp, rounding_mode)) { in TEST_F()
71 rounding_mode); in TEST_F()
Dexpm1_test.cpp52 auto test = [&](mpfr::RoundingMode rounding_mode) { in TEST_F() argument
53 mpfr::ForceRoundingMode __r(rounding_mode); in TEST_F()
76 0.5, rounding_mode)) { in TEST_F()
79 result, tol, rounding_mode)) { in TEST_F()
94 EXPECT_MPFR_MATCH(mpfr::Operation::Expm1, mx, mr, 0.5, rounding_mode); in TEST_F()
/external/cronet/tot/third_party/llvm-libc/src/test/src/math/
Dcos_test.cpp70 auto test = [&](mpfr::RoundingMode rounding_mode) { in TEST_F() argument
71 mpfr::ForceRoundingMode __r(rounding_mode); in TEST_F()
94 0.5, rounding_mode)) { in TEST_F()
97 result, ulp, rounding_mode)) { in TEST_F()
113 rounding_mode); in TEST_F()
Dcbrt_test.cpp28 auto test = [&](mpfr::RoundingMode rounding_mode) { in TEST_F() argument
29 mpfr::ForceRoundingMode force_rounding(rounding_mode); in TEST_F()
52 0.5, rounding_mode)) { in TEST_F()
55 result, ulp, rounding_mode)) { in TEST_F()
71 rounding_mode); in TEST_F()
Dsin_test.cpp59 auto test = [&](mpfr::RoundingMode rounding_mode) { in TEST_F() argument
60 mpfr::ForceRoundingMode __r(rounding_mode); in TEST_F()
83 0.5, rounding_mode)) { in TEST_F()
86 result, tol, rounding_mode)) { in TEST_F()
101 EXPECT_MPFR_MATCH(mpfr::Operation::Sin, mx, mr, 0.5, rounding_mode); in TEST_F()
Dtan_test.cpp68 auto test = [&](mpfr::RoundingMode rounding_mode) { in TEST_F() argument
69 mpfr::ForceRoundingMode force_rounding(rounding_mode); in TEST_F()
92 0.5, rounding_mode)) { in TEST_F()
95 result, ulp, rounding_mode)) { in TEST_F()
111 rounding_mode); in TEST_F()
Dexpm1_test.cpp52 auto test = [&](mpfr::RoundingMode rounding_mode) { in TEST_F() argument
53 mpfr::ForceRoundingMode __r(rounding_mode); in TEST_F()
76 0.5, rounding_mode)) { in TEST_F()
79 result, tol, rounding_mode)) { in TEST_F()
94 EXPECT_MPFR_MATCH(mpfr::Operation::Expm1, mx, mr, 0.5, rounding_mode); in TEST_F()
/external/sdv/vsomeip/third_party/boost/numeric/interval/include/boost/numeric/interval/
Drounding.hpp24 typedef int rounding_mode; typedef
25 static void get_rounding_mode(rounding_mode&) {} in get_rounding_mode()
26 static void set_rounding_mode(rounding_mode) {} in set_rounding_mode()
78 typename Rounding::rounding_mode mode;

12345678