| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // SPDX-FileCopyrightText: 2024 - 2025 Arm Limited and/or its affiliates <open-source-office@arm.com> | ||
| 2 | // | ||
| 3 | // SPDX-License-Identifier: Apache-2.0 | ||
| 4 | |||
| 5 | #include "kleidicv/dispatch.h" | ||
| 6 | #include "kleidicv/kleidicv.h" | ||
| 7 | |||
| 8 | namespace kleidicv { | ||
| 9 | |||
| 10 | namespace neon { | ||
| 11 | |||
| 12 | template <typename T, typename TInternal> | ||
| 13 | kleidicv_error_t sum(const T *src, size_t src_stride, size_t width, | ||
| 14 | size_t height, T *sum); | ||
| 15 | |||
| 16 | } // namespace neon | ||
| 17 | |||
| 18 | namespace sve2 { | ||
| 19 | |||
| 20 | template <typename T, typename TInternal> | ||
| 21 | kleidicv_error_t sum(const T *src, size_t src_stride, size_t width, | ||
| 22 | size_t height, T *sum); | ||
| 23 | |||
| 24 | } // namespace sve2 | ||
| 25 | |||
| 26 | namespace sme { | ||
| 27 | |||
| 28 | template <typename T, typename TInternal> | ||
| 29 | kleidicv_error_t sum(const T *src, size_t src_stride, size_t width, | ||
| 30 | size_t height, T *sum); | ||
| 31 | |||
| 32 | } // namespace sme | ||
| 33 | |||
| 34 | namespace sme2 { | ||
| 35 | |||
| 36 | template <typename T, typename TInternal> | ||
| 37 | kleidicv_error_t sum(const T *src, size_t src_stride, size_t width, | ||
| 38 | size_t height, T *sum); | ||
| 39 | |||
| 40 | } // namespace sme2 | ||
| 41 | |||
| 42 | } // namespace kleidicv | ||
| 43 | |||
| 44 |
6/6✓ Branch 0 taken 1 times.
✓ Branch 1 taken 4 times.
✓ Branch 2 taken 1 times.
✓ Branch 3 taken 3 times.
✓ Branch 4 taken 2 times.
✓ Branch 5 taken 1 times.
|
10 | KLEIDICV_MULTIVERSION_C_API( |
| 45 | kleidicv_sum_f32, (&kleidicv::neon::sum<float, double>), | ||
| 46 | KLEIDICV_SVE2_IMPL_IF((&kleidicv::sve2::sum<float, double>)), | ||
| 47 | (&kleidicv::sme::sum<float, double>), | ||
| 48 | (&kleidicv::sme2::sum<float, double>)); | ||
| 49 |