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 bitwise_and(const T *src_a, size_t src_a_stride, | ||
15 | const T *src_b, size_t src_b_stride, T *dst, | ||
16 | size_t dst_stride, size_t width, size_t height); | ||
17 | |||
18 | } // namespace neon | ||
19 | |||
20 | namespace sve2 { | ||
21 | |||
22 | template <typename T> | ||
23 | kleidicv_error_t bitwise_and(const T *src_a, size_t src_a_stride, | ||
24 | const T *src_b, size_t src_b_stride, T *dst, | ||
25 | size_t dst_stride, size_t width, size_t height); | ||
26 | |||
27 | } // namespace sve2 | ||
28 | |||
29 | namespace sme { | ||
30 | template <typename T> | ||
31 | kleidicv_error_t bitwise_and(const T *src_a, size_t src_a_stride, | ||
32 | const T *src_b, size_t src_b_stride, T *dst, | ||
33 | size_t dst_stride, size_t width, size_t height); | ||
34 | |||
35 | } // namespace sme | ||
36 | |||
37 | } // namespace kleidicv | ||
38 | |||
39 | #define KLEIDICV_DEFINE_C_API(name, type) \ | ||
40 | KLEIDICV_MULTIVERSION_C_API( \ | ||
41 | name, &kleidicv::neon::bitwise_and<type>, \ | ||
42 | KLEIDICV_SVE2_IMPL_IF(&kleidicv::sve2::bitwise_and<type>), \ | ||
43 | KLEIDICV_SME_IMPL_IF(&kleidicv::sme::bitwise_and<type>), nullptr) | ||
44 | |||
45 |
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_bitwise_and, uint8_t); |
46 |