Jump to content


64bit fixed point arithmetic


  • You cannot reply to this topic
1 reply to this topic

#1 nesaha

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 02 June 2010 - 09:10 AM

Impulse Codev supports fixed point arithmetics for only 8,16 & 32 bits. How can I implement fixed point multiplications for 64bit integers?


#2 meix

    Advanced Member

  • Impulse Staff
  • PipPipPip
  • 32 posts

Posted 22 June 2010 - 02:28 PM

If your platform has 32-bit datawidth, you can use 32-bit fixed-point macros to define a 64-bit macro in co_math.h. These macros are currently defined for basic operations on the bitwidths that correspond to the standard C types (8, 16, 32 bits), but there's no reason you can't write your own for 64-bit numbers.

meix





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users