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