]> www.ginac.de Git - cln.git/blob - src/real/elem/cl_R_plus.cc
* */*: Remove cl_boolean, cl_true, and cl_false in favor of built-in
[cln.git] / src / real / elem / cl_R_plus.cc
1 // binary operator +
2
3 // General includes.
4 #include "cl_sysdep.h"
5
6 // Specification.
7 #include "cln/real.h"
8
9
10 // Implementation.
11
12 #include "cl_R.h"
13 #include "cln/rational.h"
14 #include "cln/float.h"
15
16 namespace cln {
17
18 const cl_R operator+ (const cl_R& x, const cl_R& y)
19 {
20         if (eq(y,0)) { return x; }
21         elif (eq(x,0)) { return y; }
22         else
23 #define plus(a,b) a+b
24 GEN_R_OP2_2(x,y, plus, return)
25 }
26
27 }  // namespace cln