1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-02 08:59:28 +02:00

Return to using private (l)lrint(f) inline functions.

This commit is contained in:
lllucius 2015-03-16 20:34:05 +00:00
parent 08cceb6b4a
commit 5d3e9ade95

View File

@ -61,10 +61,18 @@
#elif (defined (WIN32) || defined (_WIN32))
/* Win32 doesn't seem to have these functions.
// Including math.h allows us to use the inline assembler versions without
// producing errors in newer Visual Studio versions.
// Without the include, we get different linkage error messages.
// Without the inline assembler versions, these functions are VERY slow.
// I also see that the include was part of the original source for this file:
// http://www.mega-nerd.com/FPcast/
#include <math.h>
/* Win32 doesn't seem to have these functions.
** Therefore implement inline versions of these functions here.
*/
#if (_MSC_VER == 1500)
__inline long int
lrint (double flt)
{ int intgr;
@ -112,7 +120,7 @@
return intgr ;
}
#endif
#else
/* dmazzoni: modified these to do a proper rounding, even though