Floating point calculations

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

Floating point calculations

ソリューションへジャンプ
1,013件の閲覧回数
rahulkrishna
Contributor IV

i found in my project that floating point calculations are not supported as it was not compiling and i changed it by making it integer division and multiplication. Now my doubt is if i return the values as float and do multiplication and division something like i am doing at run time. How does the compiler handle this? Will i get something like segmentation fault and the processor will reset? Related question is if i add the floating computation. How much additional code will get added by adding all the libraries? Please help. I am using s12x.

ラベル(1)
0 件の賞賛
返信
1 解決策
884件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

hi,

floating computation need floating lib support. when we select different floating support during creating a new project, we  select the different lib supporting for the project.

2015-08-10_15-17-28.png

when floating library is selected, user can do floating computation in project normally .

see my post

Why long long not supported

can this help you?


Have a great day,
Zhang Jun

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
885件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

hi,

floating computation need floating lib support. when we select different floating support during creating a new project, we  select the different lib supporting for the project.

2015-08-10_15-17-28.png

when floating library is selected, user can do floating computation in project normally .

see my post

Why long long not supported

can this help you?


Have a great day,
Zhang Jun

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信