We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb123dd commit b3281ceCopy full SHA for b3281ce
coresimd/src/aarch64/v8.rs
@@ -42,7 +42,7 @@ pub unsafe fn _rbit_u64(x: u64) -> u64 {
42
#[inline(always)]
43
#[cfg_attr(test, assert_instr(cls))]
44
pub unsafe fn _cls_u32(x: u32) -> u32 {
45
- u32::leading_zeros(((((((x as i32) >> 31) as u32) ^ x) << 1) | 1)) as u32
+ u32::leading_zeros((((((x as i32) >> 31) as u32) ^ x) << 1) | 1) as u32
46
}
47
48
/// Counts the leading most significant bits set.
@@ -52,7 +52,7 @@ pub unsafe fn _cls_u32(x: u32) -> u32 {
52
53
54
pub unsafe fn _cls_u64(x: u64) -> u64 {
55
- u64::leading_zeros(((((((x as i64) >> 63) as u64) ^ x) << 1) | 1)) as u64
+ u64::leading_zeros((((((x as i64) >> 63) as u64) ^ x) << 1) | 1) as u64
56
57
58
#[cfg(test)]
0 commit comments