Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
basicmath_f16.h File Reference

Public APIs for DSP basicmath for 16 bit floating point. More...

#include <zephyr/dsp/dsp.h>

Go to the source code of this file.

Functions

DSP_FUNC_SCOPE void zdsp_mult_f16 (const float16_t *src_a, const float16_t *src_b, float16_t *dst, uint32_t block_size)
 Floating-point vector multiplication.
 
DSP_FUNC_SCOPE void zdsp_add_f16 (const float16_t *src_a, const float16_t *src_b, float16_t *dst, uint32_t block_size)
 Floating-point vector addition.
 
DSP_FUNC_SCOPE void zdsp_sub_f16 (const float16_t *src_a, const float16_t *src_b, float16_t *dst, uint32_t block_size)
 Floating-point vector subtraction.
 
DSP_FUNC_SCOPE void zdsp_scale_f16 (const float16_t *src, float16_t scale, float16_t *dst, uint32_t block_size)
 Multiplies a floating-point vector by a scalar.
 
DSP_FUNC_SCOPE void zdsp_abs_f16 (const float16_t *src, float16_t *dst, uint32_t block_size)
 Floating-point vector absolute value.
 
DSP_FUNC_SCOPE void zdsp_dot_prod_f16 (const float16_t *src_a, const float16_t *src_b, uint32_t block_size, float16_t *result)
 Dot product of floating-point vectors.
 
DSP_FUNC_SCOPE void zdsp_offset_f16 (const float16_t *src, float16_t offset, float16_t *dst, uint32_t block_size)
 Adds a constant offset to a floating-point vector.
 
DSP_FUNC_SCOPE void zdsp_negate_f16 (const float16_t *src, float16_t *dst, uint32_t block_size)
 Negates the elements of a floating-point vector.
 
DSP_FUNC_SCOPE void zdsp_clip_f16 (const float16_t *src, float16_t *dst, float16_t low, float16_t high, uint32_t num_samples)
 Elementwise floating-point clipping.
 

Detailed Description

Public APIs for DSP basicmath for 16 bit floating point.