ESP-IDF Firmware
Firmware architecture and call graph
Loading...
Searching...
No Matches
dsps_sqrt.h
Go to the documentation of this file.
1// Copyright 2018-2019 Espressif Systems (Shanghai) PTE LTD
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#ifndef _dsps_sqrt_H_
16#define _dsps_sqrt_H_
17#include "dsp_err.h"
18
19
20#ifdef __cplusplus
21extern "C"
22{
23#endif
24
41esp_err_t dsps_sqrt_f32_ansi(const float *input, float *output, int len);
42//esp_err_t dsps_sqrt_s32_ansi(const int32_t *input, int16_t *output, int len);
43
57float dsps_sqrtf_f32_ansi(const float data);
58
59
75
76#ifdef __cplusplus
77}
78#endif
79
80
81#ifdef CONFIG_DSP_OPTIMIZED
82#define dsps_sqrt_f32 dsps_sqrt_f32_ansi
83#define dsps_sqrtf_f32 dsps_sqrtf_f32_ansi
84#define dsps_inverted_sqrtf_f32 dsps_inverted_sqrtf_f32_ansi
85#else
86#define dsps_sqrt_f32 dsps_sqrt_f32_ansi
87#define dsps_sqrtf_f32 dsps_sqrtf_f32_ansi
88#define dsps_inverted_sqrtf_f32 dsps_inverted_sqrtf_f32_ansi
89#endif
90
91#endif // _dsps_sqrt_H_
esp_err_t dsps_sqrt_f32_ansi(const float *input, float *output, int len)
square root approximation
float dsps_inverted_sqrtf_f32_ansi(float data)
inverted square root approximation
float dsps_sqrtf_f32_ansi(const float data)
square root approximation
int esp_err_t
Definition esp_err.h:21
static float data[128 *2]
Definition test_fft2r.c:34