+1528
-41
lines changedFilter options
+1528
-41
lines changed Original file line number Diff line number Diff line change
@@ -40,4 +40,13 @@
40
40
#define DEVICE_EXTERN_C_INLINE DEVICE_EXTERN_C __attribute__((always_inline))
41
41
#endif // __LIBDEVICE_HOST_IMPL__
42
42
43
+
// Rounding mode are used internally by type convert functions in imf libdevice
44
+
// and we don't want to include system's fenv.h, so we define ourselves'.
45
+
typedef enum {
46
+
__IML_RTE, // round to nearest-even
47
+
__IML_RTZ, // round to zero
48
+
__IML_RTP, // round to +inf
49
+
__IML_RTN, // round to -inf
50
+
} __iml_rounding_mode;
51
+
43
52
#endif // __LIBDEVICE_DEVICE_H__
Original file line number Diff line number Diff line change
@@ -90,6 +90,7 @@ static inline TyFP __integral2FP_host(TyINT x, int rdMode) {
90
90
fesetround(roundingOriginal);
91
91
return res;
92
92
}
93
+
#pragma STDC FENV_ACCESS OFF
93
94
#endif // __LIBDEVICE_HOST_IMPL__
94
95
95
96
template <typename Ty> static inline Ty __imax(Ty x, Ty y) {
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4