How to set FPU rounding mode of cortex M7 (IM.x RT) ?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to set FPU rounding mode of cortex M7 (IM.x RT) ?

1,116件の閲覧回数
_ThomasLorenz_
Contributor II

Hi

The is fenv.h and  fesetround() but I suppose it is only only available in c++.

How to set the FPU mode in a C project?

 

error: 'FE_TOWARDZERO' undeclared (first use in this function)

171 | fesetround(FE_TOWARDZERO);
| ^~~~~~~~~~~~~
*.c:171:14: note: each undeclared identifier is reported only once for each function it appears in

 

Regrads

Thomas

0 件の賞賛
返信
1 返信

1,088件の閲覧回数
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello
I hope you are well.

Please refer to this documentation on how to handle these functions: ARM Compiler ARM C and C++ Libraries and Floating-Point Support User Guide Version 5.05

If you have more questions do not hesitate to ask me.
Best regards,
Omar

0 件の賞賛
返信