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 kleidicv | ||
35 | |||
36 |
4/4✓ Branch 0 taken 1 times.
✓ Branch 1 taken 3 times.
✓ Branch 2 taken 2 times.
✓ Branch 3 taken 1 times.
|
8 | KLEIDICV_MULTIVERSION_C_API( |
37 | kleidicv_sum_f32, (&kleidicv::neon::sum<float, double>), | ||
38 | KLEIDICV_SVE2_IMPL_IF((&kleidicv::sve2::sum<float, double>)), | ||
39 | (&kleidicv::sme::sum<float, double>), nullptr); | ||
40 |