| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // SPDX-FileCopyrightText: 2023 Arm Limited and/or its affiliates <open-source-office@arm.com> | ||
| 2 | // | ||
| 3 | // SPDX-License-Identifier: Apache-2.0 | ||
| 4 | |||
| 5 | #include "in_range_sc.h" | ||
| 6 | |||
| 7 | namespace kleidicv::sve2 { | ||
| 8 | |||
| 9 | template <typename T> | ||
| 10 | KLEIDICV_TARGET_FN_ATTRS kleidicv_error_t | ||
| 11 | 159 | in_range(const T *src, size_t src_stride, uint8_t *dst, size_t dst_stride, | |
| 12 | size_t width, size_t height, T lower_bound, T upper_bound) { | ||
| 13 | 318 | return in_range_sc<T>(src, src_stride, dst, dst_stride, width, height, | |
| 14 | 159 | lower_bound, upper_bound); | |
| 15 | } | ||
| 16 | |||
| 17 | #define KLEIDICV_INSTANTIATE_TEMPLATE(type) \ | ||
| 18 | template KLEIDICV_TARGET_FN_ATTRS kleidicv_error_t in_range<type>( \ | ||
| 19 | const type *src, size_t src_stride, uint8_t *dst, size_t dst_stride, \ | ||
| 20 | size_t width, size_t height, type lower_bound, type upper_bound) | ||
| 21 | |||
| 22 | KLEIDICV_INSTANTIATE_TEMPLATE(uint8_t); | ||
| 23 | KLEIDICV_INSTANTIATE_TEMPLATE(float); | ||
| 24 | |||
| 25 | } // namespace kleidicv::sve2 | ||
| 26 |