Line | Branch | Exec | Source |
---|---|---|---|
1 | // SPDX-FileCopyrightText: 2023 - 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 | template <typename T> | ||
12 | kleidicv_error_t threshold_binary(const T *src, size_t src_stride, T *dst, | ||
13 | size_t dst_stride, size_t width, | ||
14 | size_t height, T threshold, T value); | ||
15 | } // namespace neon | ||
16 | |||
17 | namespace sve2 { | ||
18 | template <typename T> | ||
19 | kleidicv_error_t threshold_binary(const T *src, size_t src_stride, T *dst, | ||
20 | size_t dst_stride, size_t width, | ||
21 | size_t height, T threshold, T value); | ||
22 | } // namespace sve2 | ||
23 | |||
24 | namespace sme { | ||
25 | template <typename T> | ||
26 | kleidicv_error_t threshold_binary(const T *src, size_t src_stride, T *dst, | ||
27 | size_t dst_stride, size_t width, | ||
28 | size_t height, T threshold, T value); | ||
29 | } // namespace sme | ||
30 | |||
31 | } // namespace kleidicv | ||
32 | |||
33 | #define KLEIDICV_DEFINE_C_API(name, type) \ | ||
34 | KLEIDICV_MULTIVERSION_C_API( \ | ||
35 | name, &kleidicv::neon::threshold_binary<type>, \ | ||
36 | KLEIDICV_SVE2_IMPL_IF(&kleidicv::sve2::threshold_binary<type>), \ | ||
37 | &kleidicv::sme::threshold_binary<type>, nullptr) | ||
38 | |||
39 |
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_threshold_binary_u8, uint8_t); |
40 |