summaryrefslogtreecommitdiff
path: root/msvc_extra_headers/ardourext/float_cast.h.input
diff options
context:
space:
mode:
authorJohn Emmas <johne53@tiscali.co.uk>2013-08-04 15:36:07 +0100
committerJohn Emmas <johne53@tiscali.co.uk>2013-08-04 15:36:07 +0100
commit490311bc081b12d328e6e02cac8170538e96fb2f (patch)
tree6a938f2619d21a1f669b855f41ea4e6a4fbfcd0b /msvc_extra_headers/ardourext/float_cast.h.input
parent07d94b9b4868fad26c9e8ac2ae4901849a09b8ac (diff)
'libs/ardour' - Main body of changes required for building with MSVC
Diffstat (limited to 'msvc_extra_headers/ardourext/float_cast.h.input')
-rw-r--r--msvc_extra_headers/ardourext/float_cast.h.input23
1 files changed, 23 insertions, 0 deletions
diff --git a/msvc_extra_headers/ardourext/float_cast.h.input b/msvc_extra_headers/ardourext/float_cast.h.input
index a5a82e3668..2ba3bbbe62 100644
--- a/msvc_extra_headers/ardourext/float_cast.h.input
+++ b/msvc_extra_headers/ardourext/float_cast.h.input
@@ -68,6 +68,29 @@
return intgr ;
}
+ __inline long long int
+ llrint (double flt)
+ { long long int intgr;
+
+ _asm
+ { fld flt
+ fistp intgr
+ } ;
+
+ return intgr ;
+ }
+
+ __inline long long int
+ llrintf (float flt)
+ { long long int intgr;
+
+ _asm
+ { fld flt
+ fistp intgr
+ } ;
+
+ return intgr ;
+ }
#endif
#endif // __FLOAT_CAST_H__