aboutsummaryrefslogtreecommitdiff
path: root/ChocolArm64/Instructions/CryptoHelper.cs
diff options
context:
space:
mode:
authorLDj3SNuD <35856442+LDj3SNuD@users.noreply.github.com>2018-11-01 05:22:09 +0100
committergdkchan <gab.dark.100@gmail.com>2018-11-01 01:22:09 -0300
commit1e7ea76f148660ff403938f3f84376879901e3ff (patch)
treef01eece0c78b2946c80b885403005000ac1278a4 /ChocolArm64/Instructions/CryptoHelper.cs
parent53e66645260e1dfe382138fa8ed09376da99cb60 (diff)
Add Flush-to-zero mode (input, output) to FP instructions (slow paths); update FP Tests. Update Naming Conventions for Tests project. (#489)
* Update SoftFloat.cs * Update SoftFallback.cs * Update InstEmitSimdShift.cs * Update InstEmitSimdCvt.cs * Update InstEmitSimdArithmetic.cs * Update CryptoHelper.cs * Update CpuTestSimd.cs * Update CpuTestSimdReg.cs * Update CpuThreadState.cs * Update OpCodeTable.cs * Add files via upload * Nit. * Remove unused using. Nit. * Remove unused using. FZ update. * Nit. * Remove unused using.
Diffstat (limited to 'ChocolArm64/Instructions/CryptoHelper.cs')
-rw-r--r--ChocolArm64/Instructions/CryptoHelper.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/ChocolArm64/Instructions/CryptoHelper.cs b/ChocolArm64/Instructions/CryptoHelper.cs
index bb9a22a3..b38d79a8 100644
--- a/ChocolArm64/Instructions/CryptoHelper.cs
+++ b/ChocolArm64/Instructions/CryptoHelper.cs
@@ -185,10 +185,10 @@ namespace ChocolArm64.Instructions
{
int idx = columns << 2;
- byte row0 = inState[idx + 0]; // A, E, I, M: [Row0, Col0-Col3]
- byte row1 = inState[idx + 1]; // B, F, J, N: [Row1, Col0-Col3]
- byte row2 = inState[idx + 2]; // C, G, K, O: [Row2, Col0-Col3]
- byte row3 = inState[idx + 3]; // D, H, L, P: [Row3, Col0-Col3]
+ byte row0 = inState[idx + 0]; // A, E, I, M: [row0, col0-col3]
+ byte row1 = inState[idx + 1]; // B, F, J, N: [row1, col0-col3]
+ byte row2 = inState[idx + 2]; // C, G, K, O: [row2, col0-col3]
+ byte row3 = inState[idx + 3]; // D, H, L, P: [row3, col0-col3]
outState[idx + 0] = (byte)((uint)_gfMul0E[row0] ^ _gfMul0B[row1] ^ _gfMul0D[row2] ^ _gfMul09[row3]);
outState[idx + 1] = (byte)((uint)_gfMul09[row0] ^ _gfMul0E[row1] ^ _gfMul0B[row2] ^ _gfMul0D[row3]);
@@ -246,10 +246,10 @@ namespace ChocolArm64.Instructions
{
int idx = columns << 2;
- byte row0 = inState[idx + 0]; // A, E, I, M: [Row0, Col0-Col3]
- byte row1 = inState[idx + 1]; // B, F, J, N: [Row1, Col0-Col3]
- byte row2 = inState[idx + 2]; // C, G, K, O: [Row2, Col0-Col3]
- byte row3 = inState[idx + 3]; // D, H, L, P: [Row3, Col0-Col3]
+ byte row0 = inState[idx + 0]; // A, E, I, M: [row0, col0-col3]
+ byte row1 = inState[idx + 1]; // B, F, J, N: [row1, col0-col3]
+ byte row2 = inState[idx + 2]; // C, G, K, O: [row2, col0-col3]
+ byte row3 = inState[idx + 3]; // D, H, L, P: [row3, col0-col3]
outState[idx + 0] = (byte)((uint)_gfMul02[row0] ^ _gfMul03[row1] ^ row2 ^ row3);
outState[idx + 1] = (byte)((uint)row0 ^ _gfMul02[row1] ^ _gfMul03[row2] ^ row3);