Avainsana-arkisto: SSE2

lrint/llrint/lrintf using SSE2

#include <emmintrin.h> #define lrint(dbl) _mm_cvttsd_si32(_mm_set_sd(dbl)) #define llrint(dbl) _mm_cvttsd_si64x(_mm_set_sd(dbl)) #ifdef _M_AMD64 #define llrint(dbl) _mm_cvttsd_si64x(_mm_set_sd(dbl)) #else #define llrint(dbl) _mm_cvttsd_si64(_mm_set_sd(dbl)) #endif #define lrintf(flt) _mm_cvttss_si32(_mm_set_ss(flt))

Kategoria(t): Tietokoneet ja Internet | Avainsanat: , , , | Kommentoi