Skip to content
Snippets Groups Projects
Commit 2ade1c5c authored by Erik Faye-Lund's avatar Erik Faye-Lund
Browse files

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: default avatarErik Faye-Lund <erik.faye-lund@collabora.com>
Fixes: 5de29aee (util: try to use SSE instructions with MSVC and 32-bit gcc)
Reviewed-by: default avatarMatt Turner <mattst88@gmail.com>
parent ee2bc11c
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment