ESP-IDF Firmware
Firmware architecture and call graph
Loading...
Searching...
No Matches
dspm_addc.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef _dspm_addc_H_
8#define _dspm_addc_H_
9#include "dsp_err.h"
10
11#include "dspm_addc_platform.h"
12
13#ifdef __cplusplus
14extern "C"
15{
16#endif
17
18
41esp_err_t dspm_addc_f32_ansi(const float *input, float *output, float C, int rows, int cols, int padd_in, int padd_out, int step_in, int step_out);
42esp_err_t dspm_addc_f32_ae32(const float *input, float *output, float C, int rows, int cols, int padd_in, int padd_out, int step_in, int step_out);
43
44
45#ifdef __cplusplus
46}
47#endif
48
49
50#if CONFIG_DSP_OPTIMIZED
51#if (dspm_addc_f32_ae32_enabled == 1)
52#define dspm_addc_f32 dspm_addc_f32_ae32
53#else
54#define dspm_addc_f32 dspm_addc_f32_ansi
55#endif
56#else
57#define dspm_addc_f32 dspm_addc_f32_ansi
58#endif // CONFIG_DSP_OPTIMIZED
59
60#endif // _dspm_addc_H_
esp_err_t dspm_addc_f32_ansi(const float *input, float *output, float C, int rows, int cols, int padd_in, int padd_out, int step_in, int step_out)
add a constant and an array with padding (add a constant and a sub-matrix)
esp_err_t dspm_addc_f32_ae32(const float *input, float *output, float C, int rows, int cols, int padd_in, int padd_out, int step_in, int step_out)
int esp_err_t
Definition esp_err.h:21
float C[4][16]
Definition test_mmult.c:22