]> www.ginac.de Git - cln.git/blobdiff - src/float/dfloat/elem/cl_DF_zerop.cc
Use paths relative the `src' directory in the #include directives.
[cln.git] / src / float / dfloat / elem / cl_DF_zerop.cc
index 3803b1e6bfc0d1bd57f6fe7b6bfcda75eef18a8c..2ddf9751d183afc8530e74d00657f777a7551a3d 100644 (file)
@@ -1,22 +1,25 @@
 // zerop().
 
 // General includes.
-#include "cl_sysdep.h"
+#include "base/cl_sysdep.h"
 
 // Specification.
-#include "cl_dfloat.h"
+#include "cln/dfloat.h"
 
 
 // Implementation.
 
-#include "cl_DF.h"
+#include "float/dfloat/cl_DF.h"
 
-MAYBE_INLINE
-cl_boolean zerop (const cl_DF& x)
+namespace cln {
+
+CL_INLINE bool CL_INLINE_DECL(zerop) (const cl_DF& x)
 {
 #if 0
-       return (cl_boolean) (DF_uexp(TheDfloat(x)->dfloat_value_semhi) == 0);
+       return DF_uexp(TheDfloat(x)->dfloat_value_semhi) == 0;
 #else // this is faster
-       return (cl_boolean) (TheDfloat(x)->dfloat_value_semhi == 0);
+       return TheDfloat(x)->dfloat_value_semhi == 0;
 #endif
 }
+
+}  // namespace cln