mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-30 11:30:22 +01:00
util: fix SSE-version needed for double opcodes
This code generates CVTSD2SI, which requires SSE2. So let's fix the required SSE-version. Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Fixes:5de29ae(util: try to use SSE instructions with MSVC and 32-bit gcc) Reviewed-by: Matt Turner <mattst88@gmail.com> (cherry picked from commit2ade1c5cf7)
This commit is contained in:
parent
c34a479cc3
commit
5b85ecce0b
1 changed files with 1 additions and 1 deletions
|
|
@ -116,7 +116,7 @@ _mesa_lroundevenf(float x)
|
|||
static inline long
|
||||
_mesa_lroundeven(double x)
|
||||
{
|
||||
#if defined(__SSE__) || defined(_MSC_VER)
|
||||
#if defined(__SSE2__) || defined(_MSC_VER)
|
||||
#if LONG_MAX == INT64_MAX
|
||||
return _mm_cvtsd_si64(_mm_load_sd(&x));
|
||||
#elif LONG_MAX == INT32_MAX
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue