You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Compute the absolute value of packed signed 16-bit integers in a, and store the unsigned results in dst using writemask k (elements are copied from src when the corresponding mask bit is not set).
/// Compute the absolute value of packed signed 8-bit integers in a, and store the unsigned results in dst using writemask k (elements are copied from src when the corresponding mask bit is not set).
let r = simd_shr(simd_mul(a, b), u32x32::splat(16));
1368
+
transmute(simd_cast::<u32x32, u16x32>(r))
1372
1369
}
1373
1370
1374
1371
/// Multiply the packed unsigned 16-bit integers in a and b, producing intermediate 32-bit integers, and store the high 16 bits of the intermediate integers in dst using writemask k (elements are copied from src when the corresponding mask bit is not set).
let r = simd_shr(simd_mul(a, b), i32x32::splat(16));
1467
+
transmute(simd_cast::<i32x32, i16x32>(r))
1468
1468
}
1469
1469
1470
1470
/// Multiply the packed signed 16-bit integers in a and b, producing intermediate 32-bit integers, and store the high 16 bits of the intermediate integers in dst using writemask k (elements are copied from src when the corresponding mask bit is not set).
let r = simd_shr(simd_add(simd_add(a, b), u32x32::splat(1)), u32x32::splat(1));
5511
+
transmute(simd_cast::<_, u16x32>(r))
5509
5512
}
5510
5513
5511
5514
/// Average packed unsigned 16-bit integers in a and b, and store the results in dst using writemask k (elements are copied from src when the corresponding mask bit is not set).
let r = simd_shr(simd_add(simd_add(a, b), u16x64::splat(1)), u16x64::splat(1));
5600
+
transmute(simd_cast::<_, u8x64>(r))
5595
5601
}
5596
5602
5597
5603
/// Average packed unsigned 8-bit integers in a and b, and store the results in dst using writemask k (elements are copied from src when the corresponding mask bit is not set).
0 commit comments