summaryrefslogtreecommitdiff
path: root/msvc_extra_headers/ardourext/float_cast.h.input
diff options
context:
space:
mode:
Diffstat (limited to 'msvc_extra_headers/ardourext/float_cast.h.input')
-rw-r--r--msvc_extra_headers/ardourext/float_cast.h.input24
1 files changed, 24 insertions, 0 deletions
diff --git a/msvc_extra_headers/ardourext/float_cast.h.input b/msvc_extra_headers/ardourext/float_cast.h.input
index 2ba3bbbe62..94433da965 100644
--- a/msvc_extra_headers/ardourext/float_cast.h.input
+++ b/msvc_extra_headers/ardourext/float_cast.h.input
@@ -56,6 +56,18 @@
return intgr ;
}
+ __inline double
+ rint (double flt)
+ { long long int intgr;
+
+ _asm
+ { fld flt
+ fistp intgr
+ } ;
+
+ return (double) intgr ;
+ }
+
__inline long int
lrintf (float flt)
{ int intgr;
@@ -68,6 +80,18 @@
return intgr ;
}
+ __inline float
+ rintf (float flt)
+ { int intgr;
+
+ _asm
+ { fld flt
+ fistp intgr
+ } ;
+
+ return (float) intgr ;
+ }
+
__inline long long int
llrint (double flt)
{ long long int intgr;