lkml.org 
[lkml]   [2002]   [Jan]   [6]   [last100]   RSS Feed
Views: [more markup]   [less markup]   [headers]   [forward]  
 
Messages in this thread
/
DateSun, 6 Jan 2002 19:22:04 -0800
FromRichard Henderson <>
SubjectRe: results: Remove 8 bytes from struct page on 64bit archs
On Mon, Jan 07, 2002 at 12:25:55PM +1100, Anton Blanchard wrote:
>         li 11,120		; sizeof(struct page)
[...]
>         divd 0,0,11
> 
> Perhaps the compiler should be optimising this better (can we replace
> the divide?)

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.


r~
-
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:15    [W:0.520 / U:0.560 seconds]
©2003-2008 Jasper Spaans