Changeset View
Changeset View
Standalone View
Standalone View
libraries/source/nvtt/src/src/nvmath/Half.cpp
Show First 20 Lines • Show All 483 Lines • ▼ Show 20 Lines | nv::half_to_float( uint16 h ) | ||||
const uint32 f_inf_result = _uint32_sels( is_inf_msb, f_e_mask, f_denorm_result ); | const uint32 f_inf_result = _uint32_sels( is_inf_msb, f_e_mask, f_denorm_result ); | ||||
const uint32 f_nan_result = _uint32_sels( is_nan_msb, f_em_nan, f_inf_result ); | const uint32 f_nan_result = _uint32_sels( is_nan_msb, f_em_nan, f_inf_result ); | ||||
const uint32 f_result = _uint32_or( f_s, f_nan_result ); | const uint32 f_result = _uint32_or( f_s, f_nan_result ); | ||||
return (f_result); | return (f_result); | ||||
} | } | ||||
#if !NV_OS_IOS && (defined(__i386__) || defined(__x86_64__)) | #if !NV_OS_IOS && (defined(__i386__) || defined(__x86_64__) || defined(__e2k__)) | ||||
#if NV_CC_GNUC | #if NV_CC_GNUC | ||||
#if defined(__i386__) | #if defined(__i386__) | ||||
#include <x86intrin.h> | #include <x86intrin.h> | ||||
#elif defined(__x86_64__) | #elif defined(__x86_64__) || defined(__e2k__) | ||||
#include <xmmintrin.h> | #include <xmmintrin.h> | ||||
#endif | #endif | ||||
#endif | #endif | ||||
#include "nvcore/Memory.h" // NV_ALIGN_16 | #include "nvcore/Memory.h" // NV_ALIGN_16 | ||||
static __m128 half_to_float4_SSE2(__m128i h) | static __m128 half_to_float4_SSE2(__m128i h) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 284 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator