Rounding.hpp
Go to the documentation of this file.
00001 // ========================================================================================
00002 //  ApproxMVBB
00003 //  Copyright (C) 2014 by Gabriel Nützi <nuetzig (at) imes (d0t) mavt (d0t) ethz (døt) ch>
00004 //
00005 //  This Source Code Form is subject to the terms of the Mozilla Public
00006 //  License, v. 2.0. If a copy of the MPL was not distributed with this
00007 //  file, You can obtain one at http://mozilla.org/MPL/2.0/.
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


asr_approx_mvbb
Author(s): Gassner Nikolai
autogenerated on Sat Jun 8 2019 20:21:50