#6083: [with new patch, needs review] speedup integer division
------------------------------+---------------------------------------------
 Reporter:  robertwb          |       Owner:  somebody
     Type:  defect            |      Status:  new     
 Priority:  major             |   Milestone:          
Component:  basic arithmetic  |    Keywords:          
 Reviewer:                    |      Author:          
   Merged:                    |  
------------------------------+---------------------------------------------

Comment(by craigcitro):

 It turns out the segfault was coming from an infinite loop in Cython. The
 issue was that after the first patch above, doing `Integer %
 IntegerMod_gmp` would call into the `__mod__` on `IntegerMod_gmp`, which
 tried to check if something was zero by doing something of the form
 `Integer % IntegerMod_gmp` ... and repeat ad infinitum.

 So the new patch adds a small snippet to fix this, and a doctest.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6083#comment:6>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to