ESP-IDF Firmware
Firmware architecture and call graph
Loading...
Searching...
No Matches
dspm_add.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
8#ifndef _dspm_add_H_
9#define _dspm_add_H_
10#include "dsp_err.h"
11
12#include "dspm_add_platform.h"
13
14
15#ifdef __cplusplus
16extern "C"
17{
18#endif
19
20
45esp_err_t dspm_add_f32_ansi(const float *input1, const float *input2, float *output, int rows, int cols, int padd1, int padd2, int padd_out, int step1, int step2, int step_out);
46esp_err_t dspm_add_f32_ae32(const float *input1, const float *input2, float *output, int rows, int cols, int padd1, int padd2, int padd_out, int step1, int step2, int step_out);
48
49#ifdef __cplusplus
50}
51#endif
52
53#if CONFIG_DSP_OPTIMIZED
54
55#if (dspm_add_f32_ae32_enabled == 1)
56#define dspm_add_f32 dspm_add_f32_ae32
57#else
58#define dspm_add_f32 dspm_add_f32_ansi
59#endif
60
61#else // CONFIG_DSP_OPTIMIZED
62#define dspm_add_f32 dspm_add_f32_ansi
63#endif // CONFIG_DSP_OPTIMIZED
64
65#endif // _dspm_add_H_
esp_err_t dspm_add_f32_ansi(const float *input1, const float *input2, float *output, int rows, int cols, int padd1, int padd2, int padd_out, int step1, int step2, int step_out)
add two arrays with paddings (add two sub-matrices)
esp_err_t dspm_add_f32_ae32(const float *input1, const float *input2, float *output, int rows, int cols, int padd1, int padd2, int padd_out, int step1, int step2, int step_out)
int esp_err_t
Definition esp_err.h:21