lkml.org 
[lkml]   [2004]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: When should we use likely() / unlikely() / get_unaligned() ?
Date
In message <1076238833.12587.229.camel@imladris.demon.co.uk> you write:
> To be honest, I'm more interested in the case of get_unaligned(). The
> principle is fairly similar -- the ratio between the performance of the
> inline and the exception cases varies wildly from architecture to
> architecture. But the range is far wider -- we now support architectures
> in 2.6 where alignment fixups _cannot_ happen, and the cost of the
> 'exception' case should be considered infinite.

Um, we do? I thought it was compulsory in the kernel, otherwise
networking breaks on packets w/ wierd hardware headers.

Rusty.
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
-
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 14:00    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site