Home
last modified time | relevance | path

Searched refs:abs (Results 1 – 25 of 2649) sorted by relevance

12345678910>>...106

/external/python/cpython3/Lib/test/decimaltestdata/
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 …]
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 …]
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 …]
/external/python/cpython2/Lib/test/decimaltestdata/
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 …]
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 …]
/external/libvpx/libvpx/vpx_dsp/arm/
Dsad_neon.c24 uint16x8_t abs = vabdl_u8(vget_low_u8(src_u8), vget_low_u8(ref_u8)); in vpx_sad4x4_neon() local
25 abs = vabal_u8(abs, vget_high_u8(src_u8), vget_high_u8(ref_u8)); in vpx_sad4x4_neon()
26 return vget_lane_u32(horizontal_add_uint16x8(abs), 0); in vpx_sad4x4_neon()
36 uint16x8_t abs = vabdl_u8(vget_low_u8(src_u8), vget_low_u8(avg)); in vpx_sad4x4_avg_neon() local
37 abs = vabal_u8(abs, vget_high_u8(src_u8), vget_high_u8(avg)); in vpx_sad4x4_avg_neon()
38 return vget_lane_u32(horizontal_add_uint16x8(abs), 0); in vpx_sad4x4_avg_neon()
44 uint16x8_t abs = vdupq_n_u16(0); in vpx_sad4x8_neon() local
50 abs = vabal_u8(abs, vget_low_u8(src_u8), vget_low_u8(ref_u8)); in vpx_sad4x8_neon()
51 abs = vabal_u8(abs, vget_high_u8(src_u8), vget_high_u8(ref_u8)); in vpx_sad4x8_neon()
54 return vget_lane_u32(horizontal_add_uint16x8(abs), 0); in vpx_sad4x8_neon()
[all …]
/external/clang/test/SemaCXX/
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 …]
Dwarn-absolute-value-header.cpp5 int abs(int);
10 int abs(int);
11 float abs(float);
16 (void)abs(d); in test()
29 (void)abs(ll); in test()
41 (void)abs(i); in test()
49 (void)abs(f); in test()
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/NVPTX/
Didioms.ll8 ; CHECK: abs.s16
10 %abs.cond = icmp sge i16 %a, 0
11 %abs = select i1 %abs.cond, i16 %a, i16 %neg
12 ret i16 %abs
17 ; CHECK: abs.s32
19 %abs.cond = icmp sge i32 %a, 0
20 %abs = select i1 %abs.cond, i32 %a, i32 %neg
21 ret i32 %abs
26 ; CHECK: abs.s64
28 %abs.cond = icmp sge i64 %a, 0
[all …]
/external/swiftshader/src/System/
DHalf.cpp23 unsigned int abs = fp32i & 0x7FFFFFFF; in half() local
25 if(abs > 0x47FFEFFF) // Infinity in half()
29 else if(abs < 0x38800000) // Denormal in half()
31 unsigned int mantissa = (abs & 0x007FFFFF) | 0x00800000; in half()
32 int e = 113 - (abs >> 23); in half()
36 abs = mantissa >> e; in half()
40 abs = 0; in half()
43 fp16i = sign | (abs + 0x00000FFF + ((abs >> 13) & 1)) >> 13; in half()
47 fp16i = sign | (abs + 0xC8000000 + 0x00000FFF + ((abs >> 13) & 1)) >> 13; in half()
/external/swiftshader/src/Common/
DHalf.cpp23 unsigned int abs = fp32i & 0x7FFFFFFF; in half() local
25 if(abs > 0x47FFEFFF) // Infinity in half()
29 else if(abs < 0x38800000) // Denormal in half()
31 unsigned int mantissa = (abs & 0x007FFFFF) | 0x00800000; in half()
32 int e = 113 - (abs >> 23); in half()
36 abs = mantissa >> e; in half()
40 abs = 0; in half()
43 fp16i = sign | (abs + 0x00000FFF + ((abs >> 13) & 1)) >> 13; in half()
47 fp16i = sign | (abs + 0xC8000000 + 0x00000FFF + ((abs >> 13) & 1)) >> 13; in half()
/external/swiftshader/third_party/llvm-7.0/llvm/test/MC/AArch64/SVE/
Dabs.s10 abs z0.b, p0/m, z0.b label
16 abs z0.h, p0/m, z0.h label
22 abs z0.s, p0/m, z0.s label
28 abs z0.d, p0/m, z0.d label
34 abs z31.b, p7/m, z31.b label
40 abs z31.h, p7/m, z31.h label
46 abs z31.s, p7/m, z31.s label
52 abs z31.d, p7/m, z31.d label
68 abs z4.d, p7/m, z31.d label
80 abs z4.d, p7/m, z31.d label
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/
Deval.pass.cpp71 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
72 assert(std::abs((var - x_var) / x_var) < 0.01); in main()
73 assert(std::abs(skew - x_skew) < 0.01); in main()
74 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()
153 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
154 assert(std::abs((var - x_var) / x_var) < 0.01); in main()
[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/libcxx/test/std/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.pconst/
Deval.pass.cpp67 assert(std::abs((double)Ni/N - prob[i]) / prob[i] < .01); in test1()
89 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test1()
90 assert(std::abs((var - x_var) / x_var) < 0.01); in test1()
91 assert(std::abs(skew - x_skew) < 0.01); in test1()
92 assert(std::abs((kurtosis - x_kurtosis) / x_kurtosis) < 0.01); in test1()
130 assert(std::abs((double)Ni/N - prob[i]) / prob[i] < .01); in test2()
152 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test2()
153 assert(std::abs((var - x_var) / x_var) < 0.01); in test2()
154 assert(std::abs(skew - x_skew) < 0.01); in test2()
155 assert(std::abs((kurtosis - x_kurtosis) / x_kurtosis) < 0.01); in test2()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/MC/AMDGPU/
Dfma-mix.s21 v_fma_mix_f32 v0, abs(v1), v2, v3
27 v_fma_mix_f32 v0, v1, abs(v2), v3
30 v_fma_mix_f32 v0, v1, v2, abs(v3)
42 v_fma_mix_f32 v0, -abs(v1), v2, v3
45 v_fma_mix_f32 v0, v1, -abs(v2), v3
48 v_fma_mix_f32 v0, v1, v2, -abs(v3)
51 v_fma_mixlo_f16 v0, abs(v1), -v2, abs(v3)
54 v_fma_mixhi_f16 v0, -v1, abs(v2), -abs(v3)
Dmad-mix.s21 v_mad_mix_f32 v0, abs(v1), v2, v3
27 v_mad_mix_f32 v0, v1, abs(v2), v3
30 v_mad_mix_f32 v0, v1, v2, abs(v3)
42 v_mad_mix_f32 v0, -abs(v1), v2, v3
45 v_mad_mix_f32 v0, v1, -abs(v2), v3
48 v_mad_mix_f32 v0, v1, v2, -abs(v3)
51 v_mad_mixlo_f16 v0, abs(v1), -v2, abs(v3)
54 v_mad_mixhi_f16 v0, -v1, abs(v2), -abs(v3)
Ddl-insts-err.s282 v_dot2_f32_f16 v0, abs(v1), v2, v3
284 v_dot2_f32_f16 v0, v1, abs(v2), v3
286 v_dot2_f32_f16 v0, v1, v2, abs(v3)
288 v_dot2_f32_f16 v0, abs(v1), abs(v2), v3
290 v_dot2_f32_f16 v0, abs(v1), v2, abs(v3)
292 v_dot2_f32_f16 v0, abs(v1), abs(v2), abs(v3)
318 v_dot2_i32_i16 v0, abs(v1), v2, v3
320 v_dot2_i32_i16 v0, v1, abs(v2), v3
322 v_dot2_i32_i16 v0, v1, v2, abs(v3)
324 v_dot2_i32_i16 v0, abs(v1), abs(v2), v3
[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/swiftshader/third_party/llvm-7.0/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/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/InstCombine/
Dabs-1.ll6 declare i32 @abs(i32)
10 ; Test that the abs library call simplifier works correctly.
11 ; abs(x) -> x <s 0 ? -x : x.
20 %ret = call i32 @abs(i32 %x)
46 ; We have a canonical form of abs to make CSE easier.
57 %abs = select i1 %cmp, i8 %x, i8 %neg
58 ret i8 %abs
72 %abs = select <2 x i1> %cmp, <2 x i8> %x, <2 x i8> %neg
73 ret <2 x i8> %abs
87 %abs = select <2 x i1> %cmp, <2 x i8> %x, <2 x i8> %neg
[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/libcxx/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.geo/
Deval.pass.cpp83 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test1()
84 assert(std::abs((var - x_var) / x_var) < 0.01); in test1()
85 assert(std::abs((skew - x_skew) / x_skew) < 0.01); in test1()
86 assert(std::abs((kurtosis - x_kurtosis) / x_kurtosis) < 0.01); in test1()
126 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test2()
127 assert(std::abs((var - x_var) / x_var) < 0.01); in test2()
128 assert(std::abs((skew - x_skew) / x_skew) < 0.01); in test2()
129 assert(std::abs((kurtosis - x_kurtosis) / x_kurtosis) < 0.03); in test2()
169 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test3()
170 assert(std::abs((var - x_var) / x_var) < 0.01); in test3()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/Mips/llvm-ir/
Dabs.ll8 ; MIPS32: abs.s {{.*}} # <MCInst #{{[0-9]+}} FABS_S
9 ; MIPS32FP64: abs.s {{.*}} # <MCInst #{{[0-9]+}} FABS_S
10 ; MM: abs.s {{.*}} # <MCInst #{{[0-9]+}} FABS_S_MM
11 ; MMFP64: abs.s {{.*}} # <MCInst #{{[0-9]+}} FABS_S_MM
12 ; MMR6: abs.s {{.*}} # <MCInst #{{[0-9]+}} FABS_S_MM
18 ; MIPS32: abs.d {{.*}} # <MCInst #{{[0-9]+}} FABS_D32
19 ; MIPS32FP64: abs.d {{.*}} # <MCInst #{{[0-9]+}} FABS_D64
20 ; MM: abs.d {{.*}} # <MCInst #{{[0-9]+}} FABS_D32_MM
21 ; MMFP64: abs.d {{.*}} # <MCInst #{{[0-9]+}} FABS_D64_MM
22 ; MMR6: abs.d {{.*}} # <MCInst #{{[0-9]+}} FABS_D64_MM

12345678910>>...106