Fixed point calculation

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Fixed point calculation

557 次查看
ranjithshanbhag
Contributor III

Is it possible to calculate Fixed point method in LPC824?
Since Floating point calculation requires more time to execute.

0 项奖励
回复
1 回复

442 次查看
jeffreycasey
Contributor I

there are primitive operations for add, subtract, multiply.  for division where the divisor is known at coding time, you can find a suitable X and Y where you can multiply by X and shift-right Y bits for division to needed accuracy.  for division where the divisor is only known in realtime, you need a longer routine for division.  there are some good example routines in "ARM System Developer's Guide" by Sloss et al.

0 项奖励
回复