[PATCH 4/5] add volk_32f_s32f_x2_convert_8u kernel
authorDaniel Estévez <daniel@destevez.net>
Thu, 19 Jan 2023 17:01:25 +0000 (18:01 +0100)
committerRaspbian forward porter <root@raspbian.org>
Wed, 20 Sep 2023 14:03:25 +0000 (15:03 +0100)
commit55c1da6889429b99b3443fbd5b2a1d557076d080
tree7a42d92e43c7b156f37cf54b37932f1b76981863
parent950fc1b7461856c6376fd148d2340253ce66736f
[PATCH 4/5] add volk_32f_s32f_x2_convert_8u kernel

This adds a kernel that performs conversion from float to uint8_t
using a scale and a bias, according to out = in * scale + bias. The
output is clamped to the interval [0, 255] and rounded to the nearest
integer.

The kernels are implemented mirroring those for
volk_32f_s32f_convert_8i, but there is an additional avx2_fma kernel,
since it makes sense to perform the scale and bias conversion using FMA
if it is available.

Signed-off-by: Daniel Estévez <daniel@destevez.net>
Gbp-Pq: Name 0004-add-volk_32f_s32f_x2_convert_8u-kernel.patch
docs/kernels.dox
kernels/volk/volk_32f_s32f_convertpuppet_8u.h [new file with mode: 0644]
kernels/volk/volk_32f_s32f_x2_convert_8u.h [new file with mode: 0644]
lib/kernel_tests.h