ESP-IDF Firmware
Firmware architecture and call graph
Loading...
Searching...
No Matches
dspm_sub.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_sub_H_
8#define _dspm_sub_H_
9#include "dsp_err.h"
10
11#include "dspm_sub_platform.h"
12
13#ifdef __cplusplus
14extern "C"
15{
16#endif
17
42esp_err_t dspm_sub_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);
43esp_err_t dspm_sub_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);
45
46#ifdef __cplusplus
47}
48#endif
49
50#if CONFIG_DSP_OPTIMIZED
51
52#if (dspm_sub_f32_ae32_enabled == 1)
53#define dspm_sub_f32 dspm_sub_f32_ae32
54#else
55#define dspm_sub_f32 dspm_sub_f32_ansi
56#endif
57#else
58#define dspm_sub_f32 dspm_sub_f32_ansi
59#endif // CONFIG_DSP_OPTIMIZED
60
61
62#endif // _dspm_sub_H_
esp_err_t dspm_sub_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)
esp_err_t dspm_sub_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)
subtracts two arrays with paddings (subtracts two sub-matrices)
int esp_err_t
Definition esp_err.h:21