lkml.org 
[lkml]   [2002]   [Jan]   [7]   [last100]   RSS Feed
Views: [more markup]   [less markup]   [headers]   [forward]  
 
Messages in this thread
/
DateSun, 06 Jan 2002 21:13:52 -0800 (PST)
SubjectRe: results: Remove 8 bytes from struct page on 64bit archs
From"David S. Miller" <>
   From: Anton Blanchard <anton@samba.org>
   Date: Mon, 7 Jan 2002 12:25:55 +1100

   Perhaps the compiler should be optimising this better (can we replace
   the divide?)

As mentioned the PPC backend of gcc thinks that divides are cheaper
than multiplies.  On sparc64 for example we get multiplies by a
constant when emitting constant divides.

If you can make the struct a power of two as well as smaller, that
would eliminate both problems here but not fix the apparent bug in the
PPC backend.
-
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 11:15    [from the cache]
©2003-2008