From c04eb9e49177ad34ee230f6029c658fac3db75ed Mon Sep 17 00:00:00 2001 From: eric900115 Date: Wed, 18 Oct 2023 12:29:52 +0800 Subject: [PATCH] [Fix] : Coding Style --- simde/arm/neon/qrdmlah.h | 8 ++++---- simde/arm/neon/qrdmlsh.h | 8 ++++---- test/arm/neon/qrdmlah.c | 28 +++++++++++++++++++++++++++- test/arm/neon/qrdmlsh.c | 26 ++++++++++++++++++++++++++ 4 files changed, 61 insertions(+), 9 deletions(-) diff --git a/simde/arm/neon/qrdmlah.h b/simde/arm/neon/qrdmlah.h index c1edfcdb9..f038d3bb8 100644 --- a/simde/arm/neon/qrdmlah.h +++ b/simde/arm/neon/qrdmlah.h @@ -79,7 +79,7 @@ simde_vqrdmlah_s16(simde_int16x4_t a, simde_int16x4_t b, simde_int16x4_t c) { for (size_t i = 0 ; i < (sizeof(r_.values) / sizeof(r_.values[0])) ; i++) { r_.values[i] = simde_vqrdmlahh_s16(a_.values[i], b_.values[i], c_.values[i]); } - + return simde_int16x4_from_private(r_); #endif @@ -105,7 +105,7 @@ simde_vqrdmlah_s32(simde_int32x2_t a, simde_int32x2_t b, simde_int32x2_t c) { for (size_t i = 0 ; i < (sizeof(r_.values) / sizeof(r_.values[0])) ; i++) { r_.values[i] = simde_vqrdmlahs_s32(a_.values[i], b_.values[i], c_.values[i]); } - + return simde_int32x2_from_private(r_); #endif @@ -131,7 +131,7 @@ simde_vqrdmlahq_s16(simde_int16x8_t a, simde_int16x8_t b, simde_int16x8_t c) { for (size_t i = 0 ; i < (sizeof(r_.values) / sizeof(r_.values[0])) ; i++) { r_.values[i] = simde_vqrdmlahh_s16(a_.values[i], b_.values[i], c_.values[i]); } - + return simde_int16x8_from_private(r_); #endif @@ -157,7 +157,7 @@ simde_vqrdmlahq_s32(simde_int32x4_t a, simde_int32x4_t b, simde_int32x4_t c) { for (size_t i = 0 ; i < (sizeof(r_.values) / sizeof(r_.values[0])) ; i++) { r_.values[i] = simde_vqrdmlahs_s32(a_.values[i], b_.values[i], c_.values[i]); } - + return simde_int32x4_from_private(r_); #endif diff --git a/simde/arm/neon/qrdmlsh.h b/simde/arm/neon/qrdmlsh.h index 9ba721317..2ec9c8b55 100644 --- a/simde/arm/neon/qrdmlsh.h +++ b/simde/arm/neon/qrdmlsh.h @@ -79,7 +79,7 @@ simde_vqrdmlsh_s16(simde_int16x4_t a, simde_int16x4_t b, simde_int16x4_t c) { for (size_t i = 0 ; i < (sizeof(r_.values) / sizeof(r_.values[0])) ; i++) { r_.values[i] = simde_vqrdmlshh_s16(a_.values[i], b_.values[i], c_.values[i]); } - + return simde_int16x4_from_private(r_); #endif @@ -105,7 +105,7 @@ simde_vqrdmlsh_s32(simde_int32x2_t a, simde_int32x2_t b, simde_int32x2_t c) { for (size_t i = 0 ; i < (sizeof(r_.values) / sizeof(r_.values[0])) ; i++) { r_.values[i] = simde_vqrdmlshs_s32(a_.values[i], b_.values[i], c_.values[i]); } - + return simde_int32x2_from_private(r_); #endif @@ -131,7 +131,7 @@ simde_vqrdmlshq_s16(simde_int16x8_t a, simde_int16x8_t b, simde_int16x8_t c) { for (size_t i = 0 ; i < (sizeof(r_.values) / sizeof(r_.values[0])) ; i++) { r_.values[i] = simde_vqrdmlshh_s16(a_.values[i], b_.values[i], c_.values[i]); } - + return simde_int16x8_from_private(r_); #endif @@ -157,7 +157,7 @@ simde_vqrdmlshq_s32(simde_int32x4_t a, simde_int32x4_t b, simde_int32x4_t c) { for (size_t i = 0 ; i < (sizeof(r_.values) / sizeof(r_.values[0])) ; i++) { r_.values[i] = simde_vqrdmlshs_s32(a_.values[i], b_.values[i], c_.values[i]); } - + return simde_int32x4_from_private(r_); #endif diff --git a/test/arm/neon/qrdmlah.c b/test/arm/neon/qrdmlah.c index f92cb27a9..46226e150 100644 --- a/test/arm/neon/qrdmlah.c +++ b/test/arm/neon/qrdmlah.c @@ -1,3 +1,29 @@ +/* SPDX-License-Identifier: MIT + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, copy, + * modify, merge, publish, distribute, sublicense, and/or sell copies + * of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS + * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + * Copyright: + * 2023 Yung-Cheng Su + */ + #define SIMDE_TEST_ARM_NEON_INSN qrdmlah #include "test-neon.h" @@ -440,4 +466,4 @@ SIMDE_TEST_FUNC_LIST_ENTRY(vqrdmlahq_s16) SIMDE_TEST_FUNC_LIST_ENTRY(vqrdmlahq_s32) SIMDE_TEST_FUNC_LIST_END -#include "test-neon-footer.h" \ No newline at end of file +#include "test-neon-footer.h" diff --git a/test/arm/neon/qrdmlsh.c b/test/arm/neon/qrdmlsh.c index 2a873c365..2c00e53e0 100644 --- a/test/arm/neon/qrdmlsh.c +++ b/test/arm/neon/qrdmlsh.c @@ -1,3 +1,29 @@ +/* SPDX-License-Identifier: MIT + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, copy, + * modify, merge, publish, distribute, sublicense, and/or sell copies + * of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS + * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + * Copyright: + * 2023 Yung-Cheng Su + */ + #define SIMDE_TEST_ARM_NEON_INSN qrdmlsh #include "test-neon.h"