Commit e18c530c by Alexis Hetu Committed by Alexis Hétu

Fixed 'truncation of constant value' warning

Change-Id: I4e0e956bd34f5ec2a3c38208cb99ac476ec26623 Reviewed-on: https://swiftshader-review.googlesource.com/11290Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent c33b473f
......@@ -2838,7 +2838,7 @@ namespace sw
{
#if defined(__i386__) || defined(__x86_64__)
// SSE2 doesn't support byte vector shifts, so shift as shorts and recombine.
RValue<Short4> hi = (As<Short4>(lhs) >> rhs) & Short4(0xFF00);
RValue<Short4> hi = (As<Short4>(lhs) >> rhs) & Short4(0xFF00u);
RValue<Short4> lo = As<Short4>(As<UShort4>((As<Short4>(lhs) << 8) >> rhs) >> 8);
return As<SByte8>(hi | lo);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment