| 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 "min_max_sc.h" | ||
| 6 | |||
| 7 | namespace kleidicv::sme { | ||
| 8 | |||
| 9 | template <typename T> | ||
| 10 | KLEIDICV_LOCALLY_STREAMING KLEIDICV_TARGET_FN_ATTRS kleidicv_error_t | ||
| 11 | 1098 | min_max(const T *src, size_t src_stride, size_t width, size_t height, | |
| 12 | T *min_value, T *max_value) { | ||
| 13 | 1098 | return min_max_sc<T>(src, src_stride, width, height, min_value, max_value); | |
| 14 | } | ||
| 15 | |||
| 16 | #define KLEIDICV_INSTANTIATE_TEMPLATE(type) \ | ||
| 17 | template KLEIDICV_TARGET_FN_ATTRS kleidicv_error_t min_max<type>( \ | ||
| 18 | const type *src, size_t src_stride, size_t width, size_t height, \ | ||
| 19 | type *min_value, type *max_value) | ||
| 20 | |||
| 21 | KLEIDICV_INSTANTIATE_TEMPLATE(int8_t); | ||
| 22 | KLEIDICV_INSTANTIATE_TEMPLATE(uint8_t); | ||
| 23 | KLEIDICV_INSTANTIATE_TEMPLATE(int16_t); | ||
| 24 | KLEIDICV_INSTANTIATE_TEMPLATE(uint16_t); | ||
| 25 | KLEIDICV_INSTANTIATE_TEMPLATE(int32_t); | ||
| 26 | KLEIDICV_INSTANTIATE_TEMPLATE(float); | ||
| 27 | |||
| 28 | } // namespace kleidicv::sme | ||
| 29 |