From f32176c0e38df6cf2d5b83c89501673303f32d3c Mon Sep 17 00:00:00 2001 From: Dave Rodgman Date: Fri, 9 Jun 2023 16:25:49 +0100 Subject: [PATCH] Remove unnecessary cast Signed-off-by: Dave Rodgman --- library/common.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/common.h b/library/common.h index 7e21a0c34b..9e1c4f6f41 100644 --- a/library/common.h +++ b/library/common.h @@ -131,10 +131,10 @@ inline void mbedtls_xor(unsigned char *r, const unsigned char *a, const unsigned #if defined(MBEDTLS_EFFICIENT_UNALIGNED_ACCESS) #if defined(__ARM_NEON) for (; (i + 16) <= n; i += 16) { - uint8x16_t v1 = vld1q_u8((uint64_t *) (a + i)); - uint8x16_t v2 = vld1q_u8((uint64_t *) (b + i)); + uint8x16_t v1 = vld1q_u8(a + i); + uint8x16_t v2 = vld1q_u8(b + i); uint8x16_t x = veorq_u8(v1, v2); - vst1q_u8((uint64_t *) (r + i), x); + vst1q_u8(r + i, x); } #elif defined(__amd64__) || defined(__x86_64__) || defined(__aarch64__) /* This codepath probably only makes sense on architectures with 64-bit registers */