Skip to content

Commit

Permalink
conversions: Build fix for x86 toolchain (KhronosGroup#1827)
Browse files Browse the repository at this point in the history
  • Loading branch information
lakshmih authored and yanfeng3721 committed Oct 26, 2023
1 parent 18ebf13 commit cabfc57
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test_conformance/conversions/conversions_data_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,11 @@ void DataInfoSpec<InType, OutType>::conv(OutType *out, InType *in)
}
else
{
#if defined(_M_X64)
_mm_store_sd(&result, _mm_cvtsi64_sd(_mm_setzero_pd(), l));
#else
result = l;
#endif
((double *)out)[0] =
(l == 0 ? 0.0 : result); // Per IEEE-754-2008 5.4.1, 0's
// always convert to +0.0
Expand Down

0 comments on commit cabfc57

Please sign in to comment.