#1 Add basic float support

closed-accepted
5
2002-01-10
2002-01-08
No

The attached files pfloatobject.[ch] add basic
floating point support to psyco using the 'quick'
method described by Armin. Not all floating point
methods are implemented, but the remainder should be
easy to add if desired. Currently implemented are:
add, subtract, mulitply, divide (but not floor
divide), pos, neg, abs, nonzero and cmp. All that
needs to be done, other than to place these files in
the Objects directory is (a) add pfloatobject.c to the
srcs and/or to hack.c and (b)add psy_floatobject_init
() to psyco_pycompiler_init() in pycompiler.c.

The tar file also contains a modified version of
test.py that does some silly floating point operations.

-tim

Discussion

  • Tim Hochberg

    Tim Hochberg - 2002-01-08

    Floating point files for psyco

     
  • Petru Paler

    Petru Paler - 2002-01-08

    Logged In: YES
    user_id=633

    Applied to CVS.

    (not closing the issue because I don't have admin privileges
    for the tracker)

     
  • Petru Paler

    Petru Paler - 2002-01-10
    • assigned_to: nobody --> ppetru
    • status: open --> closed-accepted
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks