KleidiCV Coverage Report


Directory: ./
File: kleidicv/src/arithmetics/scale_sve2.cpp
Date: 2025-11-25 17:23:32
Exec Total Coverage
Lines: 3 3 100.0%
Functions: 2 2 100.0%
Branches: 0 0 -%

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 "scale_sc.h"
6
7 namespace kleidicv::sve2 {
8
9 template <typename T, typename U>
10 197 KLEIDICV_TARGET_FN_ATTRS kleidicv_error_t scale(const T* src, size_t src_stride,
11 U* dst, size_t dst_stride,
12 size_t width, size_t height,
13 double scale, double shift) {
14 394 return scale_sc<T, U>(src, src_stride, dst, dst_stride, width, height, scale,
15 197 shift);
16 }
17
18 #define KLEIDICV_INSTANTIATE_TEMPLATE(src_type, dst_type) \
19 template KLEIDICV_TARGET_FN_ATTRS kleidicv_error_t \
20 scale<src_type, dst_type>(const src_type* src, size_t src_stride, \
21 dst_type* dst, size_t dst_stride, size_t width, \
22 size_t height, double scale, double shift)
23
24 KLEIDICV_INSTANTIATE_TEMPLATE(float, float);
25 KLEIDICV_INSTANTIATE_TEMPLATE(uint8_t, float16_t);
26
27 } // namespace kleidicv::sve2
28