]> www.ginac.de Git - cln.git/blob - src/float/elem/cl_F_RA_mul.cc
* All Files have been modified for inclusion of namespace cln;
[cln.git] / src / float / elem / cl_F_RA_mul.cc
1 // binary operator *
2
3 // General includes.
4 #include "cl_sysdep.h"
5
6 // Specification.
7 #include "cln/float.h"
8
9
10 // Implementation.
11
12 #include "cl_RA.h"
13 #include "cln/sfloat.h"
14 #include "cln/ffloat.h"
15 #include "cln/dfloat.h"
16 #include "cln/lfloat.h"
17 #include "cl_F.h"
18 #include "cl_SF.h"
19 #include "cl_FF.h"
20 #include "cl_DF.h"
21 #include "cl_LF.h"
22
23 namespace cln {
24
25 const cl_R cl_F_RA_mul (const cl_F& x, const cl_RA& y)
26 {
27         if (eq(y,0)) { return 0; } // x * 0 = exakte 0
28         floatcase(x
29         , /* SF */      return x * cl_RA_to_SF(y);
30         , /* FF */      return x * cl_RA_to_FF(y);
31         , /* DF */      return x * cl_RA_to_DF(y);
32         , /* LF */      return cl_LF_RA_mul(x,y);
33         );
34 }
35
36 }  // namespace cln