SourceForge has been redesigned. Learn more.
Close

#42 fixed point arithmetic support and libraries for PIc16 port

closed-accepted
None
5
2005-08-22
2005-05-05
No

The attached patch and tar files add 16x16 fixed point
support to pic16 port of SDCC.

A new type "fixed16x16" ( __fixed16x16 ) is declared.

16x16 fixed point means 16 bit integer and 16 bit
fractional part.

The patch and the tar files add this support to the
pic16 port, but can easily be ported to other ports
too, since the basic part is common for all ports.

Patch is against the 2.4.8 #1018 version of SDCC,
when the next release is out, I'll update the patch.

regards,
Vangelis Rokas

Discussion

  • Vangelis Rokas

    Vangelis Rokas - 2005-05-05

    Patch file for fixed16x16 support

     
  • Raphael Neider

    Raphael Neider - 2005-08-10
    • assigned_to: nobody --> tecodev
    • status: open --> open-accepted
     
  • Raphael Neider

    Raphael Neider - 2005-08-10

    Logged In: YES
    user_id=1115835

    I have just applied (a modified version of) the patch in
    SDCC 2.5.2 #1084 (changes include fixed SDCC.lex, improved
    conversion routines between double <==> fixed16x16 and
    library functions for comparisons).

    I will close this in a few days if there are no objections
    to the patch and everything still works ;-)

     
  • Raphael Neider

    Raphael Neider - 2005-08-22
    • status: open-accepted --> closed-accepted
     

Log in to post a comment.