Re: [Numpy-discussion] Re: numpy, overflow, inf, ieee, and rich , comparison

jay.krell at cornell.edu jay.krell at cornell.edu
Thu Oct 26 15:05:00 EDT 2000


But is integer division actually much faster than floating point division? I
don't believe there is a fast algorithm for integer division.

 - Jay

-----Original Message-----
From: Fredrik Lundh <effbot at telia.com>
Newsgroups: comp.lang.python
To: python-list at python.org <python-list at python.org>
Date: Thursday, October 26, 2000 6:47 AM
Subject: Re: [Numpy-discussion] Re: numpy, overflow, inf, ieee, and rich ,
comparison


>Donald O'Donnell wrote:
>> The compiled C code underlying a Python integer division makes
>> use of this fast hardware integer division instruction.  If
>> Python were changed so that all integer divisions were done in
>> floating point, we would loose the ability to make use of this
>> fast hardware divide instruction.  This could have a severe
>> negative impact on some compute intensive (Numpy?) programs.
>
>wow.
>
></F>
>
>
>--
>http://www.python.org/mailman/listinfo/python-list





More information about the Python-list mailing list