mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-24 07:59:01 +00:00
conversions: Build fix for x86 toolchain (#1827)
This commit is contained in:
committed by
GitHub
parent
c6dd6f2aa3
commit
40aaa2bcf2
@@ -402,7 +402,11 @@ void DataInfoSpec<InType, OutType>::conv(OutType *out, InType *in)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
#if defined(_M_X64)
|
||||||
_mm_store_sd(&result, _mm_cvtsi64_sd(_mm_setzero_pd(), l));
|
_mm_store_sd(&result, _mm_cvtsi64_sd(_mm_setzero_pd(), l));
|
||||||
|
#else
|
||||||
|
result = l;
|
||||||
|
#endif
|
||||||
((double *)out)[0] =
|
((double *)out)[0] =
|
||||||
(l == 0 ? 0.0 : result); // Per IEEE-754-2008 5.4.1, 0's
|
(l == 0 ? 0.0 : result); // Per IEEE-754-2008 5.4.1, 0's
|
||||||
// always convert to +0.0
|
// always convert to +0.0
|
||||||
|
|||||||
Reference in New Issue
Block a user