ESP-IDF Firmware
Firmware architecture and call graph
Loading...
Searching...
No Matches
dsps_mulc_f32_ansi.c File Reference
#include "dsps_mulc.h"
Include dependency graph for dsps_mulc_f32_ansi.c:

Go to the source code of this file.

Functions

esp_err_t dsps_mulc_f32_ansi (const float *input, float *output, int len, float C, int step_in, int step_out)
 multiply constant

Function Documentation

◆ dsps_mulc_f32_ansi()

esp_err_t dsps_mulc_f32_ansi ( const float * input,
float * output,
int len,
float C,
int step_in,
int step_out )

multiply constant

The function multiplies input array to the constant value x[i*step_out] = y[i*step_in]*C; i=[0..len) The implementation use ANSI C and could be compiled and run on any platform

Parameters
[in]inputinput array
outputoutput array
lenamount of operations for arrays
Cconstant value
step_instep over input array (by default should be 1)
step_outstep over output array (by default should be 1)
Returns
  • ESP_OK on success
  • One of the error codes from DSP library

Definition at line 17 of file dsps_mulc_f32_ansi.c.

18{
19 if (NULL == input) {
21 }
22 if (NULL == output) {
24 }
25
26 for (int i = 0 ; i < len ; i++) {
27 output[i * step_out] = input[i * step_in] * C;
28 }
29 return ESP_OK;
30}
#define ESP_ERR_DSP_PARAM_OUTOFRANGE
#define ESP_OK
Definition esp_err.h:23
float C[4][16]
Definition test_mmult.c:22

References C, ESP_ERR_DSP_PARAM_OUTOFRANGE, and ESP_OK.

Referenced by audio_read_task(), audio_read_task(), audio_read_task(), dspm::Mat::operator*=(), and dspm::Mat::operator/=().

Here is the caller graph for this function: