// ============================================================================ // // Copyright (c) 1998,1999 The CGAL Consortium // // This software and related documentation is part of an INTERNAL release // of the Computational Geometry Algorithms Library (CGAL). It is not // intended for general use. // // ---------------------------------------------------------------------------- // // release : // release_date : // // file : include/CGAL/cl_dfloat.h // revision : $Revision$ // revision_date : $Date$ // package : CLN // author(s) : Sylvain Pion // // coordinator : INRIA Sophia-Antipolis () // // ============================================================================ #ifndef CGAL_CL_DFLOAT_H #define CGAL_CL_DFLOAT_H #include #include #include #define WANT_OBFUSCATING_OPERATORS #include #include CGAL_BEGIN_NAMESPACE // Requirements. inline bool is_valid (const cl_DF & ) { return true; } inline bool is_finite (const cl_DF & ) { return true; } inline double to_double (const cl_DF &I) { return cl_double_approx(I); } // Specialized utilities. inline bool is_negative (const cl_DF &I) { return minusp(I); } inline bool is_positive (const cl_DF &I) { return plusp(I); } inline bool is_zero (const cl_DF &I) { return zerop(I); } inline Comparison_result compare (const cl_DF &I, const cl_DF &J) { return Comparison_result(cl_compare(I,J)); } // Tags. inline io_Operator io_tag (const cl_DF&) { return io_Operator(); } inline Number_tag number_type_tag (const cl_DF&) { return Number_tag(); } CGAL_END_NAMESPACE // #ifdef CGAL_INTERVAL_ARITHMETIC_H // #include // #endif #endif // CGAL_CL_DFLOAT_H