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 | #include "kleidicv/types.h" | ||
8 | |||
9 | namespace kleidicv { | ||
10 | |||
11 | namespace neon { | ||
12 | |||
13 | template <typename T> | ||
14 | kleidicv_error_t exp(const T* src, size_t src_stride, T* dst, size_t dst_stride, | ||
15 | size_t width, size_t height); | ||
16 | |||
17 | } // namespace neon | ||
18 | |||
19 | namespace sve2 { | ||
20 | |||
21 | template <typename T> | ||
22 | kleidicv_error_t exp(const T* src, size_t src_stride, T* dst, size_t dst_stride, | ||
23 | size_t width, size_t height); | ||
24 | |||
25 | } // namespace sve2 | ||
26 | |||
27 | namespace sme { | ||
28 | |||
29 | template <typename T> | ||
30 | kleidicv_error_t exp(const T* src, size_t src_stride, T* dst, size_t dst_stride, | ||
31 | size_t width, size_t height); | ||
32 | |||
33 | } // namespace sme | ||
34 | |||
35 | } // namespace kleidicv | ||
36 | |||
37 | #define KLEIDICV_DEFINE_C_API(name, type) \ | ||
38 | KLEIDICV_MULTIVERSION_C_API(name, &kleidicv::neon::exp<type>, \ | ||
39 | &kleidicv::sve2::exp<type>, \ | ||
40 | &kleidicv::sme::exp<type>, nullptr) | ||
41 | |||
42 |
4/4✓ Branch 0 taken 1 times.
✓ Branch 1 taken 3 times.
✓ Branch 2 taken 2 times.
✓ Branch 3 taken 1 times.
|
8 | KLEIDICV_DEFINE_C_API(kleidicv_exp_f32, float); |
43 |