Main Page
Modules
Namespaces
Classes
Files
File List
File Members
external
GeometryPredicates
include
ApproxMVBB
GeometryPredicates
Rounding.hpp
Go to the documentation of this file.
1
// ========================================================================================
2
// ApproxMVBB
3
// Copyright (C) 2014 by Gabriel Nützi <nuetzig (at) imes (d0t) mavt (d0t) ethz (døt) ch>
4
//
5
// This Source Code Form is subject to the terms of the Mozilla Public
6
// License, v. 2.0. If a copy of the MPL was not distributed with this
7
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
// ========================================================================================
9
10
#ifndef ApproxMVBB_GeometryPredicates_Rounding_hpp
11
#define ApproxMVBB_GeometryPredicates_Rounding_hpp
12
13
#include <type_traits>
14
15
#include "
ApproxMVBB/GeometryPredicates/Config.hpp
"
16
#include "
ApproxMVBB/GeometryPredicates/xpfpa.h
"
17
18
19
#define STR1(x) #x
20
#define STRINGIFY(x) STR1((x))
21
22
24
#define FPU_DECLARE \
25
XPFPA_DECLARE()
26
28
#define FPU_ROUND_DOUBLE \
29
XPFPA_SWITCH_DOUBLE() \
30
31
32
#define FPU_RESTORE \
33
XPFPA_RESTORE()
34
35
36
static_assert(
sizeof
(
STRINGIFY
(
FPU_DECLARE
)) > 1 ,
"You are compiling GeometricPredicates without Floating Point Control!! "
37
"The predicates are not so robust anymore if you uncomment this line!"
38
"Check the cmake output GeoemtricPredicates!"
);
39
40
#endif
xpfpa.h
STRINGIFY
#define STRINGIFY(x)
Definition:
Rounding.hpp:20
FPU_DECLARE
#define FPU_DECLARE
Definition:
Rounding.hpp:24
Config.hpp
asr_approx_mvbb
Author(s): Gassner Nikolai
autogenerated on Mon Jun 10 2019 12:38:08