]> www.ginac.de Git - cln.git/blobdiff - include/cln/lfloat.h
Replace CL_REQUIRE/CL_PROVIDE(cl_I_ring) with portable code.
[cln.git] / include / cln / lfloat.h
index e09dc7c6327fe5fb0cb7f8495f39ad39a10945d9..80801c894401b09d663c5599b199ec8db7e0fe5b 100644 (file)
@@ -20,7 +20,7 @@ extern const cl_LF operator- (const cl_LF& x);
 // Ergebnis: 0 falls x=y, +1 falls x>y, -1 falls x<y.
 extern cl_signean compare (const cl_LF& x, const cl_LF& 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_LF& x);
 
 inline bool operator== (const cl_LF& x, const cl_LF& y)
@@ -74,7 +74,7 @@ inline const cl_R operator* (const cl_RA& x, const cl_LF& y)
        extern const cl_R cl_LF_RA_mul (const cl_LF&, const cl_RA&);
        return cl_LF_RA_mul(y,x);
 }
-// Dem C++-Compiler muß man auch das Folgende sagen (wg. `int * cl_LF' u.ä.):
+// Dem C++-Compiler muß man auch das Folgende sagen (wg. `int * cl_LF' u.ä.):
 inline const cl_R operator* (const int x, const cl_LF& y)
        { return cl_I(x) * y; }
 inline const cl_R operator* (const unsigned int x, const cl_LF& y)
@@ -130,7 +130,7 @@ inline const cl_R operator/ (const cl_RA& x, const cl_LF& y)
        extern const cl_R cl_RA_LF_div (const cl_RA& x, const cl_LF& y);
        return cl_RA_LF_div(x,y);
 }
-// Dem C++-Compiler muß man nun auch das Folgende sagen:
+// Dem C++-Compiler muß man nun auch das Folgende sagen:
 inline const cl_LF operator/ (const cl_LF& x, const int y)
        { return x / cl_I(y); }
 inline const cl_LF operator/ (const cl_LF& x, const unsigned int y)
@@ -407,7 +407,6 @@ extern float float_approx (const cl_LF& x);
 extern double double_approx (const cl_LF& x);
 
 
-#ifdef WANT_OBFUSCATING_OPERATORS
 // This could be optimized to use in-place operations.
 inline cl_LF& operator+= (cl_LF& x, const cl_LF& y) { return x = x + y; }
 inline cl_LF& operator++ /* prefix */ (cl_LF& x) { return x = plus1(x); }
@@ -417,7 +416,6 @@ inline cl_LF& operator-- /* prefix */ (cl_LF& x) { return x = minus1(x); }
 inline void operator-- /* postfix */ (cl_LF& x, int dummy) { (void)dummy; x = minus1(x); }
 inline cl_LF& operator*= (cl_LF& x, const cl_LF& y) { return x = x * y; }
 inline cl_LF& operator/= (cl_LF& x, const cl_LF& y) { return x = x / y; }
-#endif
 
 
 // Runtime typing support.