From caec0f7d3ca8c50cfb914f14f79b249d1f626633 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Wed, 21 Jan 2015 20:55:01 -0500 Subject: Correct SSE2 min/max --- vec_sse_float4.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vec_sse_float4.h b/vec_sse_float4.h index 34ac64f..940de67 100644 --- a/vec_sse_float4.h +++ b/vec_sse_float4.h @@ -743,7 +743,7 @@ namespace vecmathlib { #ifdef __SSE4_1__ return _mm_max_epi32(v, x.v); #else - return MF::vml_max(*this, v); + return MF::vml_max(*this, x); #endif } @@ -752,7 +752,7 @@ namespace vecmathlib { #ifdef __SSE4_1__ return _mm_min_epi32(v, x.v); #else - return MF::vml_min(*this, v); + return MF::vml_min(*this, x); #endif } -- cgit v1.1