KleidiCV Coverage Report


Directory: ./
File: kleidicv/src/conversions/float_conv_sve2.cpp
Date: 2025-09-25 14:13:34
Exec Total Coverage
Lines: 3 3 100.0%
Functions: 4 4 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 "float_conv_sc.h"
6
7 namespace kleidicv::sve2 {
8
9 template <typename InputType, typename OutputType>
10 KLEIDICV_TARGET_FN_ATTRS kleidicv_error_t
11 320 float_conversion(const InputType* src, size_t src_stride, OutputType* dst,
12 size_t dst_stride, size_t width, size_t height) {
13 640 return float_conversion_sc<InputType, OutputType>(src, src_stride, dst,
14 320 dst_stride, width, height);
15 }
16
17 #define KLEIDICV_INSTANTIATE_TEMPLATE(itype, otype) \
18 template KLEIDICV_TARGET_FN_ATTRS kleidicv_error_t \
19 float_conversion<itype, otype>(const itype* src, size_t src_stride, \
20 otype* dst, size_t dst_stride, size_t width, \
21 size_t height)
22
23 KLEIDICV_INSTANTIATE_TEMPLATE(float, int8_t);
24 KLEIDICV_INSTANTIATE_TEMPLATE(float, uint8_t);
25 KLEIDICV_INSTANTIATE_TEMPLATE(int8_t, float);
26 KLEIDICV_INSTANTIATE_TEMPLATE(uint8_t, float);
27
28 } // namespace kleidicv::sve2
29