11#ifndef FLOAT_CAST_HEADER
12#define FLOAT_CAST_HEADER
46#define HAVE_LRINT_REPLACEMENT 0
48#if (HAVE_LRINT && HAVE_LRINTF)
58 #define _ISOC9X_SOURCE 1
59 #define _ISOC99_SOURCE 1
61 #define __USE_ISOC9X 1
62 #define __USE_ISOC99 1
66#elif (defined (__CYGWIN__))
70 #undef HAVE_LRINT_REPLACEMENT
71 #define HAVE_LRINT_REPLACEMENT 1
76 #define lrint double2int
77 #define lrintf float2int
88 static inline long double2int (
double in)
101 static inline long float2int (
float in)
114#elif (defined (WIN64) || defined(_WIN64))
140#elif (defined (WIN32) || defined (_WIN32))
142 #undef HAVE_LRINT_REPLACEMENT
143 #define HAVE_LRINT_REPLACEMENT 1
178#elif (defined (__MWERKS__) && defined (macintosh))
182 #undef HAVE_LRINT_REPLACEMENT
183 #define HAVE_LRINT_REPLACEMENT 1
189 #define lrint double2int
190 #define lrintf float2int
193 float2int (
register float in)
204 double2int (
register double in)
214#elif (defined (__MACH__) && defined (__APPLE__))
218 #undef HAVE_LRINT_REPLACEMENT
219 #define HAVE_LRINT_REPLACEMENT 1
225 #define lrint double2int
226 #define lrintf float2int
229 float2int (
register float in)
244 double2int (
register double in)
260 #warning "Don't have the functions lrint() and lrintf()."
261 #warning "Replacing these functions with a standard C cast."
266 #define lrint(dbl) ((long) (dbl))
267 #define lrintf(flt) ((long) (flt))
int _mm_cvtsd_si32(__m128d a)
__m128d _mm_load_sd(double const *dp)
_Check_return_ __CRT_INLINE long lrint(_In_ double x)
_Check_return_ __CRT_INLINE long lrintf(_In_ float x)
__asm__(".p2align 4, 0x90\n" ".seh_proc __seh2_global_filter_func\n" "__seh2_global_filter_func:\n" "\tpush %rbp\n" "\t.seh_pushreg %rbp\n" "\tsub $32, %rsp\n" "\t.seh_stackalloc 32\n" "\t.seh_endprologue\n" "\tmov %rdx, %rbp\n" "\tjmp *%rax\n" "__seh2_global_filter_func_exit:\n" "\t.p2align 4\n" "\tadd $32, %rsp\n" "\tpop %rbp\n" "\tret\n" "\t.seh_endproc")
__m128 _mm_load_ss(float const *p)