lkml.org 
[lkml]   [2002]   [Jan]   [14]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateMon, 14 Jan 2002 17:35:31 +1100
FromAnton Blanchard <>
SubjectRe: results: Remove 8 bytes from struct page on 64bit archs
> The powerpc backend claims to have a fast divide instruction
> (via RTX_COST if you care about such things).  We'll replace
> with shift when dividing by powers of 2, but won't try the
> multiply by a constant inverse trick.

To follow up: Alan Modra found and fixed the bug, it seems we were only
using the optimisation when the arguments were <= 32bit.

The target we use is RS64a which has a cost of 60 odd instructions
for divide.

Anton
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:18    [W:0.581 / U:0.390 seconds]
©2003-2008 Jasper Spaans