Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/crypto Fix mistake in big-endian arm clang.



details:   https://anonhg.NetBSD.org/src/rev/053cbe47850e
branches:  trunk
changeset: 974698:053cbe47850e
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Aug 09 01:59:04 2020 +0000

description:
Fix mistake in big-endian arm clang.

Swapped the two halves (only gcc does that, I think) and wrote j,i
backwards, oops.

(I don't have a big-endian arm clang build handy to test; hoping this
works.)

diffstat:

 sys/crypto/aes/arch/arm/arm_neon_imm.h    |  4 ++--
 sys/crypto/chacha/arch/arm/arm_neon_imm.h |  4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r e04b1f9b6255 -r 053cbe47850e sys/crypto/aes/arch/arm/arm_neon_imm.h
--- a/sys/crypto/aes/arch/arm/arm_neon_imm.h    Sun Aug 09 00:56:44 2020 +0000
+++ b/sys/crypto/aes/arch/arm/arm_neon_imm.h    Sun Aug 09 01:59:04 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: arm_neon_imm.h,v 1.1 2020/08/08 14:47:01 riastradh Exp $       */
+/*     $NetBSD: arm_neon_imm.h,v 1.2 2020/08/09 01:59:04 riastradh Exp $       */
 
 /*-
  * Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
 #define        V_N_U8(a,b,c,d,e,f,g,h)                                               \
        {h,g,f,e,d,c,b,a}
 #define        VQ_N_U8(a,b,c,d,e,f,g,h, i,j,k,l,m,n,o,p)                             \
-       {h,g,f,e,d,c,b,a, p,o,n,m,l,k,i,j}
+       {p,o,n,m,l,k,j,i, h,g,f,e,d,c,b,a}
 #define        VQ_N_U32(a,b,c,d)                                                     \
        {d,c, b,a}
 #endif
diff -r e04b1f9b6255 -r 053cbe47850e sys/crypto/chacha/arch/arm/arm_neon_imm.h
--- a/sys/crypto/chacha/arch/arm/arm_neon_imm.h Sun Aug 09 00:56:44 2020 +0000
+++ b/sys/crypto/chacha/arch/arm/arm_neon_imm.h Sun Aug 09 01:59:04 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: arm_neon_imm.h,v 1.1 2020/08/08 14:47:01 riastradh Exp $       */
+/*     $NetBSD: arm_neon_imm.h,v 1.2 2020/08/09 01:59:04 riastradh Exp $       */
 
 /*-
  * Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
 #define        V_N_U8(a,b,c,d,e,f,g,h)                                               \
        {h,g,f,e,d,c,b,a}
 #define        VQ_N_U8(a,b,c,d,e,f,g,h, i,j,k,l,m,n,o,p)                             \
-       {h,g,f,e,d,c,b,a, p,o,n,m,l,k,i,j}
+       {p,o,n,m,l,k,j,i, h,g,f,e,d,c,b,a}
 #define        VQ_N_U32(a,b,c,d)                                                     \
        {d,c, b,a}
 #endif



Home | Main Index | Thread Index | Old Index