Fixed point calculation

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Fixed point calculation

427 Views
ranjithshanbhag
Contributor III

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

0 Kudos
1 Reply

312 Views
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 Kudos