仪表盘
版本库
文件存储
活动
搜索
登录
main
/
XRange_Tag
电池标签L051工程
概况
操作记录
提交次数
目录
文档
分支
对比
blame
|
历史
|
原始文档
Merge branch '免布线基站-lora' of http://47.108.70.204:60062/r/XRange_Tag into 免...
yincheng.zhong
2024-01-22
5634c27b87d185b213dc31c921f9b64e5303d368
[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);
}