Rev 4989 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4989 | Rev 5005 | ||
---|---|---|---|
Line 416... | Line 416... | ||
416 | {
|
416 | {
|
417 | return ((uint64_t)buf[7] << 56) | ((uint64_t)buf[6] << 48) | ((uint64_t)buf[5] << 40) | |
417 | return ((uint64_t)buf[7] << 56) | ((uint64_t)buf[6] << 48) | ((uint64_t)buf[5] << 40) | |
418 | ((uint64_t)buf[4] << 32) | (buf[3] << 24) | (buf[2] << 16) | (buf[1] << 8) | (buf[0]); |
418 | ((uint64_t)buf[4] << 32) | (buf[3] << 24) | (buf[2] << 16) | (buf[1] << 8) | (buf[0]); |
419 | }
|
419 | }
|
420 | 420 | ||
421 | #if defined (BITNESS64)
|
421 | #if defined BITNESS64 && defined __SSE2__
|
422 | #include <emmintrin.h>
|
422 | #include <emmintrin.h>
|
423 | FORCE_INLINE int32_t Blrintf(const float x) |
423 | FORCE_INLINE int32_t Blrintf(const float x) |
424 | {
|
424 | {
|
425 | __m128 xx = _mm_load_ss(&x); |
425 | __m128 xx = _mm_load_ss(&x); |
426 | return _mm_cvtss_si32(xx); |
426 | return _mm_cvtss_si32(xx); |