Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef ApproxMVBB_GeometryPredicates_Rounding_hpp
00011 #define ApproxMVBB_GeometryPredicates_Rounding_hpp
00012
00013 #include <type_traits>
00014
00015 #include "ApproxMVBB/GeometryPredicates/Config.hpp"
00016 #include "ApproxMVBB/GeometryPredicates/xpfpa.h"
00017
00018
00019 #define STR1(x) #x
00020 #define STRINGIFY(x) STR1((x))
00021
00022
00024 #define FPU_DECLARE \
00025 XPFPA_DECLARE()
00026
00028 #define FPU_ROUND_DOUBLE \
00029 XPFPA_SWITCH_DOUBLE() \
00030
00031
00032 #define FPU_RESTORE \
00033 XPFPA_RESTORE()
00034
00035
00036 static_assert( sizeof(STRINGIFY(FPU_DECLARE)) > 1 ,"You are compiling GeometricPredicates without Floating Point Control!! "
00037 "The predicates are not so robust anymore if you uncomment this line!"
00038 "Check the cmake output GeoemtricPredicates!" );
00039
00040 #endif