G+Smo  25.01.0
Geometry + Simulation Modules
 
Loading...
Searching...
No Matches
exprtk_universal_adaptor.hpp
Go to the documentation of this file.
1
15#pragma once
16
17#include <string>
18#include <gsUniversal/gsUniversal.h>
19
21#include "exprtk.hpp"
22
23
24namespace exprtk
25{
26namespace details
27{
28
29namespace constant_universal
30{
31static const double e = 2.71828182845904523536028747135266249775724709369996;
32static const double pi = 3.14159265358979323846264338327950288419716939937510;
33static const double pi_2 = 1.57079632679489661923132169163975144209858469968755;
34static const double pi_4 = 0.78539816339744830961566084581987572104929234984378;
35static const double pi_180 = 0.01745329251994329576923690768488612713442871888542;
36static const double _1_pi = 0.31830988618379067153776752674502872406891929148091;
37static const double _2_pi = 0.63661977236758134307553505349005744813783858296183;
38static const double _180_pi = 57.29577951308232087679815481410517033240547246656443;
39static const double log2 = 0.69314718055994530941723212145817656807550013436026;
40static const double sqrt2 = 1.41421356237309504880168872420969807856967187537695;
41} // namespace constant_universal
42}
43}
44
45
46#define UNIVERSAL_TYPE posit_256_5
48#undef UNIVERSAL_TYPE
49
50#define UNIVERSAL_TYPE posit_128_4
52#undef UNIVERSAL_TYPE
53
54#define UNIVERSAL_TYPE posit_64_3
56#undef UNIVERSAL_TYPE
57
58#define UNIVERSAL_TYPE posit_32_2
60#undef UNIVERSAL_TYPE
61
62#define UNIVERSAL_TYPE posit_16_1
64#undef UNIVERSAL_TYPE
65
66#define UNIVERSAL_TYPE posit_8_1
68#undef UNIVERSAL_TYPE
69
70#define UNIVERSAL_TYPE posit_8_0
72#undef UNIVERSAL_TYPE
73
74#define UNIVERSAL_TYPE posit_4_0
76#undef UNIVERSAL_TYPE
77
78#define UNIVERSAL_TYPE posit_3_1
80#undef UNIVERSAL_TYPE
81
82#define UNIVERSAL_TYPE posit_3_0
84#undef UNIVERSAL_TYPE
85
86#define UNIVERSAL_TYPE posit_2_0
88#undef UNIVERSAL_TYPE
Provides an exprtk adaptor for the Unum Posit arithmetic type.
Provides an exprtk adaptor for the Unum Posit arithmetic type.