KleidiCV Coverage Report


Directory: ./
File: kleidicv/src/arithmetics/add_abs_with_threshold_sve2.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 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::sve2 {
8
9 template <typename T>
10 86 KLEIDICV_TARGET_FN_ATTRS kleidicv_error_t saturating_add_abs_with_threshold(
11 const T *src_a, size_t src_a_stride, const T *src_b, size_t src_b_stride,
12 T *dst, size_t dst_stride, size_t width, size_t height, T threshold) {
13 172 return saturating_add_abs_with_threshold_sc(src_a, src_a_stride, src_b,
14 86 src_b_stride, dst, dst_stride,
15 86 width, height, threshold);
16 }
17
18 #define KLEIDICV_INSTANTIATE_TEMPLATE(type) \
19 template KLEIDICV_TARGET_FN_ATTRS kleidicv_error_t \
20 saturating_add_abs_with_threshold<type>( \
21 const type *src_a, size_t src_a_stride, const type *src_b, \
22 size_t src_b_stride, type *dst, size_t dst_stride, size_t width, \
23 size_t height, type threshold)
24
25 KLEIDICV_INSTANTIATE_TEMPLATE(int16_t);
26
27 } // namespace kleidicv::sve2
28