mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-09 14:22:18 -04:00
Improve simd.sign_bit code generation
This commit is contained in:
1 parent
cfef365c9f
commit
42d3f78bae
1 file changed
+1
-1
+1
-1
@@ -2791,7 +2791,7 @@ sign_bit :: #force_inline proc "contextless" (v: $T/#simd[$LANES]$E) -> (res: ty
|
||||
val := to_bits(v)
|
||||
mask := type_of(val)(1<<(BITS-1))
|
||||
masked := bit_and(val, mask)
|
||||
return to_bits(shr(to_bits_signed(masked), BITS-1))
|
||||
return to_bits(shr_masked(to_bits_signed(masked), BITS-1))
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user