Skip to content

Commit b6f00cf

Browse files
committed
Fix poly64_t
1 parent 1a0e16f commit b6f00cf

File tree

1 file changed

+3
-3
lines changed
  • crates/core_arch/src/aarch64

1 file changed

+3
-3
lines changed

crates/core_arch/src/aarch64/neon.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ types! {
1818
pub struct float64x2_t(f64, f64);
1919
/// ARM-specific 64-bit wide vector of one packed `p64`.
2020
pub struct poly64x1_t(i64); // FIXME: check this!
21+
/// ARM-specific 64-bit wide vector of one packed `p64`.
22+
pub struct poly64_t(i64); // FIXME: check this!
2123
/// ARM-specific 64-bit wide vector of two packed `p64`.
2224
pub struct poly64x2_t(i64, i64); // FIXME: check this!
2325
/// ARM-specific 128-bit wide vector of one packed `p64`.
@@ -64,8 +66,6 @@ pub struct poly8x16x4_t(
6466
pub poly8x16_t,
6567
);
6668

67-
pub type poly64_t = i64;
68-
6969
#[allow(improper_ctypes)]
7070
extern "C" {
7171
#[link_name = "llvm.aarch64.neon.pmull64"]
@@ -1766,7 +1766,7 @@ mod tests {
17661766
let a: i64 = 8;
17671767
let b: i64 = 7;
17681768
let e: i128 = 56;
1769-
let r: i128 = transmute(vmull_p64(a, b));
1769+
let r: i128 = transmute(vmull_p64(transmute(a), transmute(b)));
17701770
assert_eq!(r, e);
17711771

17721772
/*

0 commit comments

Comments
 (0)