mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-11 20:17:05 +00:00
FS-6010 --resolve
This commit is contained in:
1 parent
9ecbb54061
commit
bb53175526
10 files changed
+40
-3
No files matched your search
@@ -74,7 +74,9 @@
|
||||
|
||||
#define _MMX_H_
|
||||
|
||||
#if !((defined(WIN32) || defined(_WIN32)) && (_MSC_VER >= 1800))
|
||||
#define cbrtf(value) pow((float)value, (float).333)
|
||||
#endif
|
||||
|
||||
#include <malloc.h> // To get alloca
|
||||
|
||||
|
||||
@@ -247,6 +247,7 @@ extern "C"
|
||||
* Therefore implement inline versions of these functions here.
|
||||
*/
|
||||
|
||||
#if (_MSC_VER < 1800)
|
||||
__inline long int lrint(double x)
|
||||
{
|
||||
long int i;
|
||||
@@ -288,6 +289,7 @@ extern "C"
|
||||
frndint
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
__inline long int lfastrint(double x)
|
||||
{
|
||||
@@ -317,6 +319,7 @@ extern "C"
|
||||
/* x86_64 machines will do best with a simple assignment. */
|
||||
#include <intrin.h>
|
||||
|
||||
#if (_MSC_VER < 1800)
|
||||
__inline long int lrint(double x)
|
||||
{
|
||||
return (long int)_mm_cvtsd_si64x( _mm_loadu_pd ((const double*)&x) );
|
||||
@@ -326,6 +329,7 @@ extern "C"
|
||||
{
|
||||
return _mm_cvt_ss2si( _mm_load_ss((const float*)&x) );
|
||||
}
|
||||
#endif
|
||||
|
||||
__inline long int lfastrint(double x)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user