-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrealtypes.cpp
66 lines (50 loc) · 863 Bytes
/
realtypes.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// Function Definitions
#include "realtypes.h"
#ifdef QUADMATH
std::ostream& operator << (std::ostream& os, const __float128& number) {
os << (double) number;
return os;
}
std::istream& operator >> (std::istream& is, __float128& number) {
double val;
is >> val;
number = (__float128) val;
return is;
}
REAL fabs(REAL x) {
return fabsq(x);
}
REAL sqrt(REAL x) {
return sqrtq(x);
}
REAL fmax(REAL x, REAL y) {
return fmaxq(x, y);
}
REAL fmin(REAL x, REAL y) {
return fminq(x, y);
}
REAL pow(REAL x, REAL y) {
return powq(x,y);
}
REAL nearbyint(REAL x) {
return nearbyintq(x);
}
REAL sin(REAL x) {
return sinq(x);
}
REAL asin(REAL x) {
return asinq(x);
}
REAL cos(REAL x) {
return cosq(x);
}
REAL acos(REAL x) {
return acosq(x);
}
REAL tan(REAL x) {
return tanq(x);
}
REAL atan(REAL x) {
return atanq(x);
}
#endif