mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-17 15:02:24 +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: d841742c35
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 operator()(u128 lhs, i32 rhs) const
|
||||||
{
|
{
|
||||||
auto shift_value = rhs % (sizeof(lhs) * 8 / VectorSize);
|
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()
|
static StringView name()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue