| 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 sme2 { | ||
| 36 | |||
| 37 | template <typename T> | ||
| 38 | kleidicv_error_t exp(const T* src, size_t src_stride, T* dst, size_t dst_stride, | ||
| 39 | size_t width, size_t height); | ||
| 40 | |||
| 41 | } // namespace sme2 | ||
| 42 | |||
| 43 | } // namespace kleidicv | ||
| 44 | |||
| 45 | #define KLEIDICV_DEFINE_C_API(name, type) \ | ||
| 46 | KLEIDICV_MULTIVERSION_C_API( \ | ||
| 47 | name, &kleidicv::neon::exp<type>, &kleidicv::sve2::exp<type>, \ | ||
| 48 | &kleidicv::sme::exp<type>, &kleidicv::sme2::exp<type>) | ||
| 49 | |||
| 50 |
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_DEFINE_C_API(kleidicv_exp_f32, float); |
| 51 |