Skip to content

Commit 34bc8bc

Browse files
try to fix neon impl part #1
1 parent 7ccacb8 commit 34bc8bc

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ keywords = ["chacha", "rand", "random", "rng", "xoshiro"]
1010
license = "MIT"
1111

1212
[package.metadata.docs.rs]
13-
all-features = true
1413
targets = ["x86_64-unknown-linux-gnu"]
1514

1615
[features]

src/secure/neon.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,15 @@ impl Machine for Matrix {
9797
// Look what they need to mimic a fraction of my power.
9898
state.state[1][3] = vaddq_u32(
9999
state.state[1][3],
100-
vreinterpretq_u32_u64(vcombine_u64(vcreate_u64(0), vcreate_u64(1))),
100+
vreinterpretq_u32_u64(vcombine_u64(vcreate_u64(1), vcreate_u64(0))),
101101
);
102102
state.state[2][3] = vaddq_u32(
103103
state.state[2][3],
104-
vreinterpretq_u32_u64(vcombine_u64(vcreate_u64(0), vcreate_u64(2))),
104+
vreinterpretq_u32_u64(vcombine_u64(vcreate_u64(2), vcreate_u64(0))),
105105
);
106106
state.state[3][3] = vaddq_u32(
107107
state.state[3][3],
108-
vreinterpretq_u32_u64(vcombine_u64(vcreate_u64(0), vcreate_u64(3))),
108+
vreinterpretq_u32_u64(vcombine_u64(vcreate_u64(3), vcreate_u64(0))),
109109
);
110110
state
111111
}

0 commit comments

Comments
 (0)