math.h中看到这里
/* Overloaded version of math functions for float and long double removed */
/* from here, and include in cmath instead (see Section 26.5 of C++ standard */
/* for details). Thus cpp_inline_math.h is now included in cmath . */
这个意味着下载cmath就可以进行long double精度的数据运算么?
请解答。
mangui zhang:供参考
CLAF2806x_Cla_typedefs.h 头文件的定义为:
#ifndef DSP28_DATA_TYPES
#define DSP28_DATA_TYPES
typedef short int16;
typedef long int32;
typedef unsigned char Uint8;
typedef unsigned short Uint16;
typedef unsigned long Uint32;
typedef float float32;
typedef long double float64;
#endif
math.h中看到这里
/* Overloaded version of math functions for float and long double removed */
/* from here, and include in cmath instead (see Section 26.5 of C++ standard */
/* for details). Thus cpp_inline_math.h is now included in cmath . */
这个意味着下载cmath就可以进行long double精度的数据运算么?
请解答。
user5917501:
回复 mangui zhang:
比如一个问题,我定义2个long double a,b;
a = 35.92615701202078;
b = sqrt(a);
28335得到的b = 5.99384355545044
而MATLAB得到的b = 5.993843258879964;
然后在sqrt函数中看到其变量格式为FLOAT。。。所以进行的并不是LONG DOUBLE运算。
math.h中看到这里
/* Overloaded version of math functions for float and long double removed */
/* from here, and include in cmath instead (see Section 26.5 of C++ standard */
/* for details). Thus cpp_inline_math.h is now included in cmath . */
这个意味着下载cmath就可以进行long double精度的数据运算么?
请解答。
Susan Yang:可以实现64位浮点运算,但其是通过定点指令的乗加运算实现的,而不是通过FPU的浮点指令实现的,运算量会比较大些。
math.h中看到这里
/* Overloaded version of math functions for float and long double removed */
/* from here, and include in cmath instead (see Section 26.5 of C++ standard */
/* for details). Thus cpp_inline_math.h is now included in cmath . */
这个意味着下载cmath就可以进行long double精度的数据运算么?
请解答。
user78960159:可以关注下目前预发布的TMS320F28388 有64位浮点运算硬核
相关推荐
- TIDM-DC-DC-BUCK: Design files can't download
- TMS320F28335: Error enabling this function: This task cannot be accomplished with the existing AET resources.
- TMS320F280049: 芯片在运行过程中莫名出现复位
- TMS320F28035: Ti28035芯片看门狗复位偶尔失败问题
- TMS320C28346: 28346 DMA和CPU同时访问冲突问题
- TMS320F28335: 是否有对应的SDL 软件诊断库?
- LAUNCHXL-F28069M: J3,5V引脚的作用是什么;在ADC采样过程中,需要怎样接外接信号?
- TMS320F28335: C2000™︎ 微控制器论坛