Home
last modified time | relevance | path

Searched refs:copysign (Results 1 – 25 of 134) sorted by relevance

123456

/external/python/cpython2/Lib/test/decimaltestdata/
Dcopysign.decTest2 -- copysign.decTest -- quiet copy with sign from rhs --
29 cpsx001 copysign +7.50 11 -> 7.50
30 cpsx002 copysign '1.50' '7.33' -> 1.50
31 cpsx003 copysign '-1.50' '7.33' -> 1.50
32 cpsx004 copysign '1.50' '-7.33' -> -1.50
33 cpsx005 copysign '-1.50' '-7.33' -> -1.50
36 cpsx011 copysign Infinity 11 -> Infinity
37 cpsx012 copysign -Infinity 11 -> Infinity
40 cpsx021 copysign NaN 11 -> NaN
41 cpsx022 copysign -NaN 11 -> NaN
[all …]
DdqCopySign.decTest31 dqcps001 copysign +7.50 11 -> 7.50
34 dqcps011 copysign Infinity 11 -> Infinity
35 dqcps012 copysign -Infinity 11 -> Infinity
38 dqcps021 copysign NaN 11 -> NaN
39 dqcps022 copysign -NaN 11 -> NaN
40 dqcps023 copysign sNaN 11 -> sNaN
41 dqcps024 copysign -sNaN 11 -> sNaN
44 dqcps031 copysign NaN10 11 -> NaN10
45 dqcps032 copysign -NaN10 11 -> NaN10
46 dqcps033 copysign sNaN10 11 -> sNaN10
[all …]
DddCopySign.decTest31 ddcps001 copysign +7.50 11 -> 7.50
34 ddcps011 copysign Infinity 11 -> Infinity
35 ddcps012 copysign -Infinity 11 -> Infinity
38 ddcps021 copysign NaN 11 -> NaN
39 ddcps022 copysign -NaN 11 -> NaN
40 ddcps023 copysign sNaN 11 -> sNaN
41 ddcps024 copysign -sNaN 11 -> sNaN
44 ddcps031 copysign NaN10 11 -> NaN10
45 ddcps032 copysign -NaN10 11 -> NaN10
46 ddcps033 copysign sNaN10 11 -> sNaN10
[all …]
DddCanonical.decTest242 ddcan280 copysign #77ffff3fcff3fcff -1 -> #f7ffff3fcff3fcff
243 ddcan281 copysign #77fcff3fdff3fcff 1 -> #77fcff3fdff3fcff
245 ddcan282 copysign #7c03ff3fcff3fcff -1 -> #fc03ff3fcff3fcff
246 ddcan283 copysign #7c00ff3fcff3ffff 1 -> #7c00ff3fcff3ffff
247 ddcan284 copysign #7d00ff3fcff3fcff -1 -> #fd00ff3fcff3fcff
248 ddcan285 copysign #7c04ff3fcff3fcff 1 -> #7c04ff3fcff3fcff
250 ddcan286 copysign #7e00ff3fcffffcff -1 -> #fe00ff3fcffffcff
251 ddcan287 copysign #7e40ff3fcff3fcff 1 -> #7e40ff3fcff3fcff
253 ddcan288 copysign #7a00000000000000 -1 -> #fa00000000000000
254 ddcan289 copysign #7800200000000000 1 -> #7800200000000000
/external/llvm/test/Transforms/InstCombine/
Dcopysign.ll3 declare float @llvm.copysign.f32(float, float) #0
4 declare double @llvm.copysign.f64(double, double) #0
9 %x = call float @llvm.copysign.f32(float 1.0, float -2.0) #0
16 %x = call float @llvm.copysign.f32(float -2.0, float 1.0) #0
23 %x = call float @llvm.copysign.f32(float -2.0, float -1.0) #0
30 %x = call double @llvm.copysign.f64(double 1.0, double -2.0) #0
37 %x = call double @llvm.copysign.f64(double -1.0, double 2.0) #0
44 %x = call double @llvm.copysign.f64(double -1.0, double -2.0) #0
/external/llvm/test/CodeGen/AArch64/
Dvector-fcopysign.ll13 %r = call <1 x float> @llvm.copysign.v1f32(<1 x float> %a, <1 x float> %b)
25 %r = call <1 x float> @llvm.copysign.v1f32(<1 x float> %a, <1 x float> %tmp0)
29 declare <1 x float> @llvm.copysign.v1f32(<1 x float> %a, <1 x float> %b) #0
42 %r = call <1 x double> @llvm.copysign.v1f64(<1 x double> %a, <1 x double> %tmp0)
52 %r = call <1 x double> @llvm.copysign.v1f64(<1 x double> %a, <1 x double> %b)
56 declare <1 x double> @llvm.copysign.v1f64(<1 x double> %a, <1 x double> %b) #0
65 %r = call <2 x float> @llvm.copysign.v2f32(<2 x float> %a, <2 x float> %b)
76 %r = call <2 x float> @llvm.copysign.v2f32(<2 x float> %a, <2 x float> %tmp0)
80 declare <2 x float> @llvm.copysign.v2f32(<2 x float> %a, <2 x float> %b) #0
89 %r = call <4 x float> @llvm.copysign.v4f32(<4 x float> %a, <4 x float> %b)
[all …]
Darm64-fcopysign.ll20 %0 = tail call double @copysign(double %x, double %y) nounwind readnone
32 %tmp = tail call double @copysign( double %a, double %tmp2 ) nounwind readnone
50 declare double @copysign(double, double) nounwind readnone
/external/llvm/test/CodeGen/WebAssembly/
Dcopysign-casts.ll3 ; DAGCombiner oddly folds casts into the rhs of copysign. Test that they get
9 declare double @copysign(double, double) nounwind readnone
14 ; CHECK: f64.copysign $push1=, $0, $pop0{{$}}
17 %t = call double @copysign(double %a, double %c)
23 ; CHECK: f32.copysign $push1=, $0, $pop0{{$}}
/external/llvm/test/CodeGen/X86/
Dsse-fcopysign.ll35 ; X32-NEXT: calll copysign
42 ; X64-NEXT: jmp copysign
45 %tmp = tail call double @copysign( double %a, double %tmp2 )
50 declare double @copysign(double, double)
73 %tmp = tail call float @llvm.copysign.f32( float %b, float %a )
101 %tmp = tail call double @llvm.copysign.f64( double %a, double %tmp2 )
114 %tmp = tail call float @llvm.copysign.f32( float 1.0, float -2.0 )
129 %tmp = tail call double @llvm.copysign.f64( double 0.0, double %tmp2 )
133 declare float @llvm.copysign.f32(float %Mag, float %Sgn)
134 declare double @llvm.copysign.f64(double %Mag, double %Sgn)
Dcopysign-constant-magnitude.ll21 %d0 = call double @copysign(double 0.000000e+00, double %iX)
28 %dn0 = call double @copysign(double -0.000000e+00, double %id0)
35 %d1 = call double @copysign(double 1.000000e+00, double %idn0)
42 %dn1 = call double @copysign(double -1.000000e+00, double %id1)
100 declare double @copysign(double, double) nounwind readnone
/external/llvm/test/CodeGen/AMDGPU/
Dfcopysign.f64.ll4 declare double @llvm.copysign.f64(double, double) nounwind readnone
5 declare <2 x double> @llvm.copysign.v2f64(<2 x double>, <2 x double>) nounwind readnone
6 declare <4 x double> @llvm.copysign.v4f64(<4 x double>, <4 x double>) nounwind readnone
21 %result = call double @llvm.copysign.f64(double %mag, double %sign)
29 %result = call <2 x double> @llvm.copysign.v2f64(<2 x double> %mag, <2 x double> %sign)
37 %result = call <4 x double> @llvm.copysign.v4f64(<4 x double> %mag, <4 x double> %sign)
Dfcopysign.f32.ll6 declare float @llvm.copysign.f32(float, float) nounwind readnone
7 declare <2 x float> @llvm.copysign.v2f32(<2 x float>, <2 x float>) nounwind readnone
8 declare <4 x float> @llvm.copysign.v4f32(<4 x float>, <4 x float>) nounwind readnone
25 %result = call float @llvm.copysign.f32(float %mag, float %sign)
36 %result = call <2 x float> @llvm.copysign.v2f32(<2 x float> %mag, <2 x float> %sign)
49 %result = call <4 x float> @llvm.copysign.v4f32(<4 x float> %mag, <4 x float> %sign)
/external/python/cpython2/Modules/
Dcmathmodule.c80 if (copysign(1., d) == 1.) in special_type()
86 if (copysign(1., d) == 1.) in special_type()
94 if (copysign(1., d) == 1.) in special_type()
139 r.imag = -copysign(log(hypot(z.real/2., z.imag/2.)) + in c_acos()
142 r.imag = copysign(log(hypot(z.real/2., z.imag/2.)) + in c_acos()
228 r.real = copysign(log(hypot(z.real/2., z.imag/2.)) + in c_asinh()
231 r.real = -copysign(log(hypot(z.real/2., z.imag/2.)) + in c_asinh()
277 if (copysign(1., z.real) == 1.) in c_atan2()
279 return copysign(0.25*Py_MATH_PI, z.imag); in c_atan2()
282 return copysign(0.75*Py_MATH_PI, z.imag); in c_atan2()
[all …]
Dmathmodule.c60 extern double copysign(double, double);
105 return copysign(1.0, x)*r; in sinpi()
538 if (copysign(1., x) == 1.) in m_atan2()
540 return copysign(0.25*Py_MATH_PI, y); in m_atan2()
543 return copysign(0.75*Py_MATH_PI, y); in m_atan2()
546 return copysign(0.5*Py_MATH_PI, y); in m_atan2()
549 if (copysign(1., x) == 1.) in m_atan2()
551 return copysign(0., y); in m_atan2()
554 return copysign(Py_MATH_PI, y); in m_atan2()
826 FUNC2(copysign, copysign,
[all …]
/external/libcxx/include/
Dcomplex607 __a = copysign(__libcpp_isinf(__a) ? _Tp(1) : _Tp(0), __a);
608 __b = copysign(__libcpp_isinf(__b) ? _Tp(1) : _Tp(0), __b);
610 __c = copysign(_Tp(0), __c);
612 __d = copysign(_Tp(0), __d);
617 __c = copysign(__libcpp_isinf(__c) ? _Tp(1) : _Tp(0), __c);
618 __d = copysign(__libcpp_isinf(__d) ? _Tp(1) : _Tp(0), __d);
620 __a = copysign(_Tp(0), __a);
622 __b = copysign(_Tp(0), __b);
629 __a = copysign(_Tp(0), __a);
631 __b = copysign(_Tp(0), __b);
[all …]
/external/llvm/test/ExecutionEngine/Interpreter/
Dintrinsics.ll16 declare float @llvm.copysign.f32(float, float)
17 declare double @llvm.copysign.f64(double, double)
32 %copysign32 = call float @llvm.copysign.f32(float 0.000000e+00, float 0.000000e+00)
33 %copysign64 = call double @llvm.copysign.f64(double 0.000000e+00, double 0.000000e+00)
/external/python/cpython2/Lib/test/
Dtest_math.py295 self.assertEqual(math.copysign(1, 42), 1.0)
296 self.assertEqual(math.copysign(0., 42), 0.0)
297 self.assertEqual(math.copysign(1., -42), -1.0)
298 self.assertEqual(math.copysign(3, 0.), 3.0)
299 self.assertEqual(math.copysign(4., -0.), -4.0)
301 self.assertRaises(TypeError, math.copysign)
303 self.assertEqual(math.copysign(1., 0.), 1.)
304 self.assertEqual(math.copysign(1., -0.), -1.)
305 self.assertEqual(math.copysign(INF, 0.), INF)
306 self.assertEqual(math.copysign(INF, -0.), NINF)
[all …]
/external/swiftshader/third_party/LLVM/test/CodeGen/ARM/
Dfcopysign.ll28 %0 = tail call double @copysign(double %x, double %y) nounwind
39 %1 = tail call double @copysign(double %0, double %z) nounwind
53 %call80 = tail call double @copysign(double 1.000000e+00, double undef)
75 declare double @copysign(double, double) nounwind
/external/llvm/test/Transforms/LICM/
Dhoist-round.ll7 ; copysign, minnum, maxnum and fabs intrinsics are considered safe
18 ; CHECK: call float @llvm.copysign.f32
40 %tmp.8 = call float @llvm.copysign.f32(float %tmp.7, float %arg2)
60 declare float @llvm.copysign.f32(float, float)
/external/swiftshader/third_party/LLVM/test/CodeGen/X86/
Dcopysign-zero.ll9 …%tmp2 = tail call double @copysign( double 0.000000e+00, double %X ) nounwind readnone ; <double…
13 declare double @copysign(double, double) nounwind readnone
Dsse-fcopysign.ll11 %tmp = tail call double @copysign( double %a, double %tmp2 )
16 declare double @copysign(double, double)
/external/llvm/test/CodeGen/PowerPC/
Dfcpsgn.ll8 %call = tail call double @copysign(double %a, double %b) #0
19 declare double @copysign(double, double) #0
53 %call = tail call double @copysign(double %a, double %conv) #0
/external/python/cpython2/Python/
Dpymath.c57 copysign(double x, double y) in copysign() function
77 return copysign(y, x); in round()
/external/llvm/test/CodeGen/ARM/
Dfcopysign.ll28 %0 = tail call double @copysign(double %x, double %y) nounwind readnone
39 %1 = tail call double @copysign(double %0, double %z) nounwind readnone
59 declare double @copysign(double, double) nounwind
/external/apache-commons-math/src/main/java/org/apache/commons/math/dfp/
DDfpDec.java324 inc = copysign(inc, this); in nextAfter()
331 result = copysign(newInstance(getZero()), this); in nextAfter()
337 inc = copysign(inc, this); in nextAfter()
350 result = copysign(newInstance(getZero()), this); in nextAfter()

123456