| 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 "sum_sc.h" | ||
| 6 | |||
| 7 | namespace kleidicv::sme { | ||
| 8 | |||
| 9 | template <typename T, typename TInternal> | ||
| 10 | KLEIDICV_LOCALLY_STREAMING KLEIDICV_TARGET_FN_ATTRS kleidicv_error_t | ||
| 11 | 20 | sum(const T *src, size_t src_stride, size_t width, size_t height, T *sum) { | |
| 12 | 20 | return sum_sc<T, TInternal>(src, src_stride, width, height, sum); | |
| 13 | } | ||
| 14 | |||
| 15 | #define KLEIDICV_INSTANTIATE_TEMPLATE(type, type_internal) \ | ||
| 16 | template KLEIDICV_TARGET_FN_ATTRS kleidicv_error_t sum<type, type_internal>( \ | ||
| 17 | const type *src, size_t src_stride, size_t width, size_t height, \ | ||
| 18 | type *sum) | ||
| 19 | |||
| 20 | KLEIDICV_INSTANTIATE_TEMPLATE(float, double); | ||
| 21 | |||
| 22 | } // namespace kleidicv::sme | ||
| 23 |