仪表盘
版本库
文件存储
活动
搜索
登录
main
/
XRange_Tag
电池标签L051工程
概况
操作记录
提交次数
目录
文档
分支
对比
blame
|
历史
|
原始文档
1
WXK
2024-03-18
d9321b6a77d97a67fb6e9f0a9fd4da73a1da4078
[XRange_Tag.git]
/
Drivers
/
CMSIS
/
DSP
/
DSP_Lib_TestSuite
/
RefLibs
/
src
/
FastMathFunctions
/
sin.c
1
2
3
4
5
6
7
8
9
10
11
#include "ref.h"
q31_t ref_sin_q31(q31_t x)
{
return (q31_t)(sinf((float32_t)x * 6.28318530717959f / 2147483648.0f) * 2147483648.0f);
}
q15_t ref_sin_q15(q15_t x)
{
return (q15_t)(sinf((float32_t)x * 6.28318530717959f / 32768.0f) * 32768.0f);
}