mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 09:00:22 +00:00
LibWasm: Fix SIMD bit shift right
Set the sign in the vector's element type (even though it's a bit redundant).
This commit is contained in:
parent
40f9c9f82a
commit
d841742c35
Notes:
github-actions[bot]
2024-07-24 21:24:12 +00:00
Author: https://github.com/dzfrias Commit: https://github.com/LadybirdBrowser/ladybird/commit/d841742c358 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/794 Reviewed-by: https://github.com/alimpfard
1 changed files with 1 additions and 1 deletions
|
@ -216,7 +216,7 @@ struct VectorShiftRight {
|
|||
auto operator()(u128 lhs, i32 rhs) const
|
||||
{
|
||||
auto shift_value = rhs % (sizeof(lhs) * 8 / VectorSize);
|
||||
return bit_cast<u128>(bit_cast<Native128ByteVectorOf<NativeIntegralType<128 / VectorSize>, SetSign>>(lhs) >> shift_value);
|
||||
return bit_cast<u128>(bit_cast<Native128ByteVectorOf<SetSign<NativeIntegralType<128 / VectorSize>>, SetSign>>(lhs) >> shift_value);
|
||||
}
|
||||
static StringView name()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue