From: Samaresh Kumar Singh Date: Thu, 2 Apr 2026 20:16:56 +0000 (-0500) Subject: style: fix clang-format issues in chacha_internal_test.c X-Git-Tag: openssl-4.0.0~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09c064bf1f1ed2f781696d2d60e75799f8eb0822;p=thirdparty%2Fopenssl.git style: fix clang-format issues in chacha_internal_test.c Reviewed-by: Tomas Mraz Reviewed-by: Paul Dale MergeDate: Sat Apr 11 20:13:01 2026 (Merged from https://github.com/openssl/openssl/pull/30587) --- diff --git a/test/chacha_internal_test.c b/test/chacha_internal_test.c index 5875f3ce598..358bf7fc68f 100644 --- a/test/chacha_internal_test.c +++ b/test/chacha_internal_test.c @@ -17,7 +17,7 @@ #include "testutil.h" #include "crypto/chacha.h" #if defined(__powerpc64__) && !defined(OPENSSL_SYS_AIX) && !defined(OPENSSL_SYS_MACOSX) -# include "crypto/ppc_arch.h" +#include "crypto/ppc_arch.h" #endif static const unsigned int key[] = { @@ -190,8 +190,7 @@ static int test_cha_cha_internal(int n) * VSR0-VSR25, which aliases FPR0-FPR25; without explicit saves/restores * the caller's floating-point state is silently corrupted. */ -__attribute__((noinline)) -static int test_chacha20_p10_fpr_abi(void) +__attribute__((noinline)) static int test_chacha20_p10_fpr_abi(void) { /* * Use a buffer larger than 255 bytes to ensure the 8x path is taken. @@ -213,9 +212,18 @@ static int test_chacha20_p10_fpr_abi(void) register double r24 asm("fr24"); register double r25 asm("fr25"); - r14 = 14.0; r15 = 15.0; r16 = 16.0; r17 = 17.0; - r18 = 18.0; r19 = 19.0; r20 = 20.0; r21 = 21.0; - r22 = 22.0; r23 = 23.0; r24 = 24.0; r25 = 25.0; + r14 = 14.0; + r15 = 15.0; + r16 = 16.0; + r17 = 17.0; + r18 = 18.0; + r19 = 19.0; + r20 = 20.0; + r21 = 21.0; + r22 = 22.0; + r23 = 23.0; + r24 = 24.0; + r25 = 25.0; /* Force the values into the actual FPR registers before the call */ asm volatile("" : "+d"(r14), "+d"(r15), "+d"(r16), "+d"(r17));