]> www.ginac.de Git - cln.git/blobdiff - include/cln/complex.h
Replace CL_REQUIRE/CL_PROVIDE(cl_I_ring) with portable code.
[cln.git] / include / cln / complex.h
index 18868a9ac4ebf0dc1c333884ae6f1a87ebf3f9c5..fe74aa46712f809e41f99407d254a6f0e60656c1 100644 (file)
@@ -24,7 +24,7 @@ extern const cl_N complex (const cl_R& a, const cl_R& b);
 // realpart(x) liefert den Realteil der Zahl x.
 extern const cl_R realpart (const cl_N& x);
 
-// imagpart(x) liefert den Imaginärteil der Zahl x.
+// imagpart(x) liefert den Imaginärteil der Zahl x.
 extern const cl_R imagpart (const cl_N& x);
 
 // conjugate(x) liefert die konjugiert komplexe Zahl zur Zahl x.
@@ -69,7 +69,7 @@ extern const cl_N sqrt (const cl_N& x);
 
 // equal(x,y) vergleicht zwei Zahlen x und y auf Gleichheit.
 extern bool equal (const cl_N& x, const cl_N& y);
-// equal_hashcode(x) liefert einen equal-invarianten Hashcode für x.
+// equal_hashcode(x) liefert einen equal-invarianten Hashcode für x.
 extern uint32 equal_hashcode (const cl_N& x);
 
 inline bool operator== (const cl_N& x, const cl_N& y)
@@ -138,7 +138,6 @@ extern const cl_N acos (const cl_N& z);
 extern const cl_N acosh (const cl_N& z);
 
 
-#ifdef WANT_OBFUSCATING_OPERATORS
 // This could be optimized to use in-place operations.
 inline cl_N& operator+= (cl_N& x, const cl_N& y) { return x = x + y; }
 inline cl_N& operator++ /* prefix */ (cl_N& x) { return x = plus1(x); }
@@ -148,7 +147,6 @@ inline cl_N& operator-- /* prefix */ (cl_N& x) { return x = minus1(x); }
 inline void operator-- /* postfix */ (cl_N& x, int dummy) { (void)dummy; x = minus1(x); }
 inline cl_N& operator*= (cl_N& x, const cl_N& y) { return x = x * y; }
 inline cl_N& operator/= (cl_N& x, const cl_N& y) { return x = x / y; }
-#endif
 
 
 // Runtime typing support.