| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // SPDX-FileCopyrightText: 2024 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::sve2 { | ||
| 8 | |||
| 9 | template <typename T, typename TInternal> | ||
| 10 | 20 | KLEIDICV_TARGET_FN_ATTRS kleidicv_error_t sum(const T *src, size_t src_stride, | |
| 11 | size_t width, size_t height, | ||
| 12 | T *sum) { | ||
| 13 | 20 | return sum_sc<T, TInternal>(src, src_stride, width, height, sum); | |
| 14 | } | ||
| 15 | |||
| 16 | #define KLEIDICV_INSTANTIATE_TEMPLATE(type, type_internal) \ | ||
| 17 | template KLEIDICV_TARGET_FN_ATTRS kleidicv_error_t sum<type, type_internal>( \ | ||
| 18 | const type *src, size_t src_stride, size_t width, size_t height, \ | ||
| 19 | type *sum) | ||
| 20 | |||
| 21 | KLEIDICV_INSTANTIATE_TEMPLATE(float, double); | ||
| 22 | |||
| 23 | } // namespace kleidicv::sve2 | ||
| 24 |