Home
last modified time | relevance | path

Searched full:abs (Results 1 – 25 of 6792) sorted by relevance

12345678910>>...272

/external/python/cpython3/Lib/test/decimaltestdata/
Dabs.decTest2 -- abs.decTest -- decimal absolute value --
32 absx001 abs '1' -> '1'
33 absx002 abs '-1' -> '1'
34 absx003 abs '1.00' -> '1.00'
35 absx004 abs '-1.00' -> '1.00'
36 absx005 abs '0' -> '0'
37 absx006 abs '0.00' -> '0.00'
38 absx007 abs '00.0' -> '0.0'
39 absx008 abs '00.00' -> '0.00'
40 absx009 abs '00' -> '0'
[all …]
DdqAbs.decTest29 dqabs001 abs '1' -> '1'
30 dqabs002 abs '-1' -> '1'
31 dqabs003 abs '1.00' -> '1.00'
32 dqabs004 abs '-1.00' -> '1.00'
33 dqabs005 abs '0' -> '0'
34 dqabs006 abs '0.00' -> '0.00'
35 dqabs007 abs '00.0' -> '0.0'
36 dqabs008 abs '00.00' -> '0.00'
37 dqabs009 abs '00' -> '0'
39 dqabs010 abs '-2' -> '2'
[all …]
DddAbs.decTest29 ddabs001 abs '1' -> '1'
30 ddabs002 abs '-1' -> '1'
31 ddabs003 abs '1.00' -> '1.00'
32 ddabs004 abs '-1.00' -> '1.00'
33 ddabs005 abs '0' -> '0'
34 ddabs006 abs '0.00' -> '0.00'
35 ddabs007 abs '00.0' -> '0.0'
36 ddabs008 abs '00.00' -> '0.00'
37 ddabs009 abs '00' -> '0'
39 ddabs010 abs '-2' -> '2'
[all …]
/external/pytorch/aten/src/ATen/test/
Dcuda_half_test.cu37 assert(::abs(::lgamma(Half(10.0)) - ::lgamma(10.0f)) <= threshold); in test()
38 assert(::abs(::exp(Half(1.0)) - ::exp(1.0f)) <= threshold); in test()
39 assert(::abs(::log(Half(1.0)) - ::log(1.0f)) <= threshold); in test()
40 assert(::abs(::log10(Half(1000.0)) - ::log10(1000.0f)) <= threshold); in test()
41 assert(::abs(::log1p(Half(0.0)) - ::log1p(0.0f)) <= threshold); in test()
42 assert(::abs(::log2(Half(1000.0)) - ::log2(1000.0f)) <= threshold); in test()
43 assert(::abs(::expm1(Half(1.0)) - ::expm1(1.0f)) <= threshold); in test()
44 assert(::abs(::cos(Half(0.0)) - ::cos(0.0f)) <= threshold); in test()
45 assert(::abs(::sin(Half(0.0)) - ::sin(0.0f)) <= threshold); in test()
46 assert(::abs(::sqrt(Half(100.0)) - ::sqrt(100.0f)) <= threshold); in test()
[all …]
Dhalf_test.cpp124 assert(std::abs(std::lgamma(Half(10.0)) - std::lgamma(10.0f)) <= threshold); in TEST()
125 assert(std::abs(std::exp(Half(1.0)) - std::exp(1.0f)) <= threshold); in TEST()
126 assert(std::abs(std::log(Half(1.0)) - std::log(1.0f)) <= threshold); in TEST()
127 assert(std::abs(std::log10(Half(1000.0)) - std::log10(1000.0f)) <= threshold); in TEST()
128 assert(std::abs(std::log1p(Half(0.0)) - std::log1p(0.0f)) <= threshold); in TEST()
129 assert(std::abs(std::log2(Half(1000.0)) - std::log2(1000.0f)) <= threshold); in TEST()
130 assert(std::abs(std::expm1(Half(1.0)) - std::expm1(1.0f)) <= threshold); in TEST()
131 assert(std::abs(std::cos(Half(0.0)) - std::cos(0.0f)) <= threshold); in TEST()
132 assert(std::abs(std::sin(Half(0.0)) - std::sin(0.0f)) <= threshold); in TEST()
133 assert(std::abs(std::sqrt(Half(100.0)) - std::sqrt(100.0f)) <= threshold); in TEST()
[all …]
/external/clang/test/SemaCXX/
Dwarn-absolute-value-header.cpp5 int abs(int);
10 int abs(int);
11 float abs(float);
16 (void)abs(d); in test()
17 …// expected-warning@-1{{using integer absolute value function 'abs' when argument is of floating p… in test()
18 // expected-note@-2{{use function 'std::abs' instead}} in test()
19 …// expected-note@-3{{include the header <cmath> or explicitly provide a declaration for 'std::abs'… in test()
20 // CHECK: fix-it:"{{.*}}":{[[@LINE-4]]:9-[[@LINE-4]]:12}:"std::abs" in test()
24 // expected-note@-2{{use function 'std::abs' instead}} in test()
25 …// expected-note@-3{{include the header <cmath> or explicitly provide a declaration for 'std::abs'… in test()
[all …]
Dwarn-absolute-value.cpp5 int abs(int);
21 int abs(int);
22 long int abs(long int);
23 long long int abs(long long int);
26 float abs(float);
27 double abs(double);
28 long double abs(long double);
31 double abs(T);
36 (void)std::abs(x); in test_int()
38 (void)abs(x); in test_int()
[all …]
/external/mbedtls/tests/suites/
Dtest_suite_bignum.generated.data663 MPI compare (abs) #1 0 (null) == 0 (null)
666 MPI compare (abs) #2 0 (null) == 0 (1 limb)
669 MPI compare (abs) #3 0 (null) == 0 (null)
672 MPI compare (abs) #4 0 (null) == 0 (1 limb)
675 MPI compare (abs) #5 0 (null) < positive
678 MPI compare (abs) #6 0 (null) < positive
681 MPI compare (abs) #7 0 (null) < positive with leading zero limb
684 MPI compare (abs) #8 0 (null) < positive with leading zero limb
687 MPI compare (abs) #9 0 (null) < large positive
690 MPI compare (abs) #10 0 (null) < large positive
[all …]
/external/openthread/third_party/mbedtls/repo/tests/suites/
Dtest_suite_bignum.generated.data663 MPI compare (abs) #1 0 (null) == 0 (null)
666 MPI compare (abs) #2 0 (null) == 0 (1 limb)
669 MPI compare (abs) #3 0 (null) == 0 (null)
672 MPI compare (abs) #4 0 (null) == 0 (1 limb)
675 MPI compare (abs) #5 0 (null) < positive
678 MPI compare (abs) #6 0 (null) < positive
681 MPI compare (abs) #7 0 (null) < positive with leading zero limb
684 MPI compare (abs) #8 0 (null) < positive with leading zero limb
687 MPI compare (abs) #9 0 (null) < large positive
690 MPI compare (abs) #10 0 (null) < large positive
[all …]
/external/rust/android-crates-io/crates/glam/tests/
Dsupport.rs57 (self - other).abs() <= max_abs_diff in approx_eq()
61 (self - other).abs() in abs_diff()
68 (self - other).abs() <= max_abs_diff as f64 in approx_eq()
72 (self - other).abs() in abs_diff()
84 (self.x_axis - other.x_axis).abs(), in abs_diff()
85 (self.y_axis - other.y_axis).abs(), in abs_diff()
98 (self.x_axis - other.x_axis).abs(), in abs_diff()
99 (self.y_axis - other.y_axis).abs(), in abs_diff()
112 (self.x_axis - other.x_axis).abs(), in abs_diff()
113 (self.y_axis - other.y_axis).abs(), in abs_diff()
[all …]
/external/libwebsockets/lib/abstract/transports/
Draw-skt.c29 struct lws_abs *abs; member
48 if (priv->abs->ap->heartbeat) in heartbeat_cb()
49 priv->abs->ap->heartbeat(priv->abs->api); in heartbeat_cb()
95 if (priv->abs->ap->accept) in callback_abs_client_raw_skt()
96 priv->abs->ap->accept(priv->abs->api); in callback_abs_client_raw_skt()
141 if (priv->abs && priv->abs->ap->closed) in callback_abs_client_raw_skt()
142 priv->abs->ap->closed(priv->abs->api); in callback_abs_client_raw_skt()
148 return !!priv->abs->ap->rx(priv->abs->api, in, len); in callback_abs_client_raw_skt()
152 priv->abs->ap->writeable(priv->abs->api, in callback_abs_client_raw_skt()
193 "lws-abs-cli-raw-skt", callback_abs_client_raw_skt,
[all …]
/external/llvm/test/CodeGen/SystemZ/
Dint-neg-02.ll12 %abs = select i1 %cmp, i32 %neg, i32 %val
13 %res = sub i32 0, %abs
24 %abs = select i1 %cmp, i32 %neg, i32 %val
25 %res = sub i32 0, %abs
36 %abs = select i1 %cmp, i32 %val, i32 %neg
37 %res = sub i32 0, %abs
48 %abs = select i1 %cmp, i32 %val, i32 %neg
49 %res = sub i32 0, %abs
61 %abs = select i1 %cmp, i64 %neg, i64 %ext
62 %res = sub i64 0, %abs
[all …]
/external/bc/gen/
Dlib2.bc69 p=abs(p)$
71 x=abs(x)
80 p=abs(p)$
82 x=abs(x)
89 n=abs(n)$
104 n=abs(n)$
105 k=abs(k)$
117 n=abs(n)$
118 r=abs(r)$
131 n=abs(n)$
[all …]
/external/oboe/samples/RhythmGame/third_party/glm/gtx/
Dvector_query.inl48 (abs(v.x) < epsilon),
49 (abs(v.y) < epsilon));
59 (abs(v.x) < epsilon),
60 (abs(v.y) < epsilon),
61 (abs(v.z) < epsilon));
71 (abs(v.x) < epsilon),
72 (abs(v.y) < epsilon),
73 (abs(v.z) < epsilon),
74 (abs(v.w) < epsilon));
103 return abs(dot(v0, v1)) <= max(
[all …]
/external/llvm/test/CodeGen/ARM/
Dneon_vabs.ll8 %abs = select <4 x i1> %b, <4 x i32> %a, <4 x i32> %tmp1neg
9 ret <4 x i32> %abs
17 %abs = select <4 x i1> %b, <4 x i32> %a, <4 x i32> %tmp1neg
18 ret <4 x i32> %abs
26 %abs = select <8 x i1> %b, <8 x i16> %a, <8 x i16> %tmp1neg
27 ret <8 x i16> %abs
35 %abs = select <16 x i1> %b, <16 x i8> %tmp1neg, <16 x i8> %a
36 ret <16 x i8> %abs
44 %abs = select <4 x i1> %b, <4 x i32> %tmp1neg, <4 x i32> %a
45 ret <4 x i32> %abs
[all …]
/external/XNNPACK/src/math/
Droundz-neon-addsub.c39 …// Compute bitmask for the bits we want to copy from the rounded abs(x). Other bits will be copied… in xnn_math_f32_roundz__neon_addsub()
40 // If abs(x) >= 2**23, we want all bits from x. in xnn_math_f32_roundz__neon_addsub()
41 …// If abs(x) < 2**23 or x is NaN, we want all but the sign bit from the rounded abs(x) and the sig… in xnn_math_f32_roundz__neon_addsub()
45 …n-subtraction trick with the magic number to cause rounding to the nearest-even integer for abs(x). in xnn_math_f32_roundz__neon_addsub()
46 // Note: the result is valid only for 0 <= abs(x) < 2**23. in xnn_math_f32_roundz__neon_addsub()
50 // Compute adjustment to be subtracted from the rounded-to-nearest-even abs(x) value. in xnn_math_f32_roundz__neon_addsub()
51 …// Adjustment is one if the rounded value is greater than the abs(x) value and zero otherwise (inc… in xnn_math_f32_roundz__neon_addsub()
53 …// Adjust abs(x) rounded to nearest-even via the addition-subtraction trick to get abs(x) rounded … in xnn_math_f32_roundz__neon_addsub()
57 // Combine abs(x) rounded via addition-subtraction trick with adjustment and the input x value. in xnn_math_f32_roundz__neon_addsub()
58 …// For abs(x) < 2**23, the result is abs(x) rounded via addition-subtraction trick with the sign o… in xnn_math_f32_roundz__neon_addsub()
[all …]
Droundz-sse-addsub.c41 …// Compute bitmask for the bits we want to copy from the rounded abs(x). Other bits will be copied… in xnn_math_f32_roundz__sse_addsub()
42 // If abs(x) >= 2**23, we want all bits from x. in xnn_math_f32_roundz__sse_addsub()
43 …// If abs(x) < 2**23 or x is NaN, we want all but the sign bit from the rounded abs(x) and the sig… in xnn_math_f32_roundz__sse_addsub()
45 …n-subtraction trick with the magic number to cause rounding to the nearest-even integer for abs(x). in xnn_math_f32_roundz__sse_addsub()
46 // Note: the result is valid only for 0 <= abs(x) < 2**23. in xnn_math_f32_roundz__sse_addsub()
50 // Compute adjustment to be subtracted from the rounded-to-nearest-even abs(x) value. in xnn_math_f32_roundz__sse_addsub()
51 …// Adjustment is one if the rounded value is greater than the abs(x) value and zero otherwise (inc… in xnn_math_f32_roundz__sse_addsub()
53 …// Adjust abs(x) rounded to nearest-even via the addition-subtraction trick to get abs(x) rounded … in xnn_math_f32_roundz__sse_addsub()
57 …// Combine abs(x) rounded down via addition-subtraction trick with adjustment and the input x valu… in xnn_math_f32_roundz__sse_addsub()
58 …// For abs(x) < 2**23, the result is abs(x) rounded via addition-subtraction trick with the sign o… in xnn_math_f32_roundz__sse_addsub()
[all …]
Droundz-wasmsimd-addsub.c41 …ute bitmask for the bits we want to copy from x. Other bits will be copied from the rounded abs(x). in xnn_math_f32_roundz__wasmsimd_addsub()
42 …// If abs(x) < 2**23 or x is NaN, we want the sign bit from x and the rest from the rounded abs(x). in xnn_math_f32_roundz__wasmsimd_addsub()
43 // Otherwise (abs(x) >= 2**23), we want all bits from x. in xnn_math_f32_roundz__wasmsimd_addsub()
45 // Addition-subtraction trick with the magic number to cause rounding to integer for abs(x). in xnn_math_f32_roundz__wasmsimd_addsub()
46 // Note: the result is valid only for 0 <= abs(x) < 2**23. in xnn_math_f32_roundz__wasmsimd_addsub()
50 // Compute adjustment to be subtracted from the rounded-to-nearest-even abs(x) value. in xnn_math_f32_roundz__wasmsimd_addsub()
51 …// Adjustment is one if the rounded value is greater than the abs(x) value and zero otherwise (inc… in xnn_math_f32_roundz__wasmsimd_addsub()
53 …// Adjust abs(x) rounded to nearest-even via the addition-subtraction trick to get abs(x) rounded … in xnn_math_f32_roundz__wasmsimd_addsub()
57 …// Combine abs(x) rounded down via addition-subtraction trick with adjustment and the input x valu… in xnn_math_f32_roundz__wasmsimd_addsub()
58 …// For abs(x) < 2**23, the result is abs(x) rounded via addition-subtraction trick with the sign o… in xnn_math_f32_roundz__wasmsimd_addsub()
[all …]
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.real/
Deval.pass.cpp70 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
71 assert(std::abs((var - x_var) / x_var) < 0.01); in main()
72 assert(std::abs(skew - x_skew) < 0.01); in main()
73 assert(std::abs((kurtosis - x_kurtosis) / x_kurtosis) < 0.01); in main()
110 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
111 assert(std::abs((var - x_var) / x_var) < 0.01); in main()
112 assert(std::abs(skew - x_skew) < 0.01); in main()
113 assert(std::abs((kurtosis - x_kurtosis) / x_kurtosis) < 0.01); in main()
150 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
151 assert(std::abs((var - x_var) / x_var) < 0.01); in main()
[all …]
/external/cronet/tot/third_party/libc++/src/test/std/numerics/rand/rand.dist/rand.dist.uni/rand.dist.uni.real/
Deval.pass.cpp72 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
73 assert(std::abs((var - x_var) / x_var) < 0.01); in main()
74 assert(std::abs(skew - x_skew) < 0.01); in main()
75 assert(std::abs((kurtosis - x_kurtosis) / x_kurtosis) < 0.01); in main()
112 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
113 assert(std::abs((var - x_var) / x_var) < 0.01); in main()
114 assert(std::abs(skew - x_skew) < 0.01); in main()
115 assert(std::abs((kurtosis - x_kurtosis) / x_kurtosis) < 0.01); in main()
152 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
153 assert(std::abs((var - x_var) / x_var) < 0.01); in main()
[all …]
/external/cronet/stable/third_party/libc++/src/test/std/numerics/rand/rand.dist/rand.dist.uni/rand.dist.uni.real/
Deval.pass.cpp72 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
73 assert(std::abs((var - x_var) / x_var) < 0.01); in main()
74 assert(std::abs(skew - x_skew) < 0.01); in main()
75 assert(std::abs((kurtosis - x_kurtosis) / x_kurtosis) < 0.01); in main()
112 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
113 assert(std::abs((var - x_var) / x_var) < 0.01); in main()
114 assert(std::abs(skew - x_skew) < 0.01); in main()
115 assert(std::abs((kurtosis - x_kurtosis) / x_kurtosis) < 0.01); in main()
152 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
153 assert(std::abs((var - x_var) / x_var) < 0.01); in main()
[all …]
/external/clang/test/Sema/
Dwarn-absolute-value-header.c4 int abs(int);
12 (void)abs(i); in test_int()
14 // Remove abs call in test_int()
15 (void)abs(u); in test_int()
17 // expected-note@-2{{remove the call to 'abs' since unsigned values cannot be negative}} in test_int()
23 (void)abs(ll); in test_int()
24 …// expected-warning@-1{{absolute value function 'abs' given an argument of type 'long long' but ha… in test_int()
27 (void)abs(f); in test_int()
28 …// expected-warning@-1{{using integer absolute value function 'abs' when argument is of floating p… in test_int()
31 (void)abs(d); in test_int()
[all …]
/external/libyuv/unit_test/
Dscale_test.cc52 int src_width_uv = (Abs(src_width) + 1) >> 1; in I420TestFilter()
53 int src_height_uv = (Abs(src_height) + 1) >> 1; in I420TestFilter()
55 int64_t src_y_plane_size = (Abs(src_width)) * (Abs(src_height)); in I420TestFilter()
58 int src_stride_y = Abs(src_width); in I420TestFilter()
120 int abs_diff = Abs(dst_y_c[(i * dst_stride_y) + j] - in I420TestFilter()
130 int abs_diff = Abs(dst_u_c[(i * dst_stride_uv) + j] - in I420TestFilter()
135 abs_diff = Abs(dst_v_c[(i * dst_stride_uv) + j] - in I420TestFilter()
171 int src_width_uv = (Abs(src_width) + 1) >> 1; in I420TestFilter_12()
172 int src_height_uv = (Abs(src_height) + 1) >> 1; in I420TestFilter_12()
174 int64_t src_y_plane_size = (Abs(src_width)) * (Abs(src_height)); in I420TestFilter_12()
[all …]
/external/sdv/vsomeip/third_party/boost/numeric/odeint/test/
Ddefault_operations.cpp79 using std::abs; in ~double_fixture()
80 BOOST_CHECK_SMALL( abs( x1 - value_type( 1.0 ) ) , m_eps ); in ~double_fixture()
81 BOOST_CHECK_SMALL( abs( x2 - value_type( 2.0 ) ) , m_eps ); in ~double_fixture()
82 BOOST_CHECK_SMALL( abs( x3 - value_type( 3.0 ) ) , m_eps ); in ~double_fixture()
83 BOOST_CHECK_SMALL( abs( x4 - value_type( 4.0 ) ) , m_eps ); in ~double_fixture()
84 BOOST_CHECK_SMALL( abs( x5 - value_type( 5.0 ) ) , m_eps ); in ~double_fixture()
85 BOOST_CHECK_SMALL( abs( x6 - value_type( 6.0 ) ) , m_eps ); in ~double_fixture()
86 BOOST_CHECK_SMALL( abs( x7 - value_type( 7.0 ) ) , m_eps ); in ~double_fixture()
122 using std::abs; in ~unit_fixture()
123 BOOST_CHECK_SMALL( abs( x.value() - value_type( 1.0 ) ) , m_eps ); in ~unit_fixture()
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math3/optim/univariate/
DBrentOptimizer.java64 * {@code abs} and {@code rel} define a tolerance
65 * {@code tol = rel |x| + abs}. {@code rel} should be no smaller than
67 * where <em>macheps</em> is the relative machine precision. {@code abs} must
71 * @param abs Absolute threshold.
74 * @throws NotStrictlyPositiveException if {@code abs <= 0}.
78 double abs, in BrentOptimizer() argument
85 if (abs <= 0) { in BrentOptimizer()
86 throw new NotStrictlyPositiveException(abs); in BrentOptimizer()
90 absoluteThreshold = abs; in BrentOptimizer()
96 * {@code abs} and {@code rel} define a tolerance
[all …]

12345678910>>...272