FT_DSP.gitlink.net/master/html/_sources/functionlib/dsplib/log10.rst.txt

45 lines
947 B
ReStructuredText
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Log10
=================
**共享存储版本:**
.. c:function:: void fp_log10_s( float* input1,int n,float* output,int mask);
快速计算以10为底的对数
.. math::
output_i = \log_{10}(input1_i)
输入:
- **Input1** - 输入数据地址。
- **n** - 计算长度。
- **mask** - 核掩码。
输出:
- **output** - 计算结果地址。
支持平台:
``MT7004``
.. note::
- MT7004 支持fp32
**C调用示例**
.. code-block:: c
:linenos:
:emphasize-lines: 8
//MT7004示例
#include <stdio.h>
int main(int argc, char* argv[]) {
float *input1 = (float *)0x100000000; //input在DDR空间
float *output = (float *)0x100001000;
int n = 1000;
int mask = 0xf;
fp_log10_s(input1, n, output, mask);
return 0;
}