KleidiCV Coverage Report


Directory: ./
File: kleidicv/src/arithmetics/add_abs_with_threshold_sme.cpp
Date: 2025-09-25 14:13:34
Exec Total Coverage
Lines: 4 4 100.0%
Functions: 1 1 100.0%
Branches: 0 0 -%

Line Branch Exec Source
1 // SPDX-FileCopyrightText: 2023 - 2025 Arm Limited and/or its affiliates <open-source-office@arm.com>
2 //
3 // SPDX-License-Identifier: Apache-2.0
4
5 #include "add_abs_with_threshold_sc.h"
6
7 namespace kleidicv::sme {
8
9 template <typename T>
10 KLEIDICV_LOCALLY_STREAMING KLEIDICV_TARGET_FN_ATTRS kleidicv_error_t
11 86 saturating_add_abs_with_threshold(const T *src_a, size_t src_a_stride,
12 const T *src_b, size_t src_b_stride, T *dst,
13 size_t dst_stride, size_t width,
14 size_t height, T threshold) {
15 172 return saturating_add_abs_with_threshold_sc(src_a, src_a_stride, src_b,
16 86 src_b_stride, dst, dst_stride,
17 86 width, height, threshold);
18 }
19
20 #define KLEIDICV_INSTANTIATE_TEMPLATE(type) \
21 template KLEIDICV_TARGET_FN_ATTRS kleidicv_error_t \
22 saturating_add_abs_with_threshold<type>( \
23 const type *src_a, size_t src_a_stride, const type *src_b, \
24 size_t src_b_stride, type *dst, size_t dst_stride, size_t width, \
25 size_t height, type threshold)
26
27 KLEIDICV_INSTANTIATE_TEMPLATE(int16_t);
28
29 } // namespace kleidicv::sme
30