Skip to content

Commit

Permalink
[Fix] : Coding Style
Browse files Browse the repository at this point in the history
  • Loading branch information
eric900115 committed Oct 18, 2023
1 parent c239c8c commit c04eb9e
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 9 deletions.
8 changes: 4 additions & 4 deletions simde/arm/neon/qrdmlah.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions simde/arm/neon/qrdmlsh.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
28 changes: 27 additions & 1 deletion test/arm/neon/qrdmlah.c
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
*/

#define SIMDE_TEST_ARM_NEON_INSN qrdmlah

#include "test-neon.h"
Expand Down Expand Up @@ -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"
#include "test-neon-footer.h"
26 changes: 26 additions & 0 deletions test/arm/neon/qrdmlsh.c
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
*/

#define SIMDE_TEST_ARM_NEON_INSN qrdmlsh

#include "test-neon.h"
Expand Down

0 comments on commit c04eb9e

Please sign in to comment.