#4 Add integer division and modulo support.

closed-accepted
nobody
5
2004-01-14
2003-06-24
No

I added integer division and modulo support to
pintobject.c. I did not attempt to emit machine code,
but rather just added a c-implementation for each in
the spirit of pfloatobject.
This results in the prime-sieve program posted a week
or so ago running twice as fast, essentially at the
same speed reported for pyrex.
The resulting code passes the same number of tests in
test_regr.py as stock psyco (both fail 5 and skip 25 on
WinXp python 2.2.2)

-tim

Discussion

  • Tim Hochberg

    Tim Hochberg - 2003-06-24

    cvsdif for adding div/mod to pintobject.c

     
  • Armin Rigo

    Armin Rigo - 2004-01-14

    Logged In: YES
    user_id=4771

    Sorry, I lost sight of this patch, which I didn't apply
    immediately because I thought it wouldn't be too hard to
    complete it with full machine code emission.

    Checked in (without code emission).

     
  • Armin Rigo

    Armin Rigo - 2004-01-14
    • status: open --> closed-accepted
     

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

Sign up for the SourceForge newsletter:





No, thanks