lkml.org 
[lkml]   [2002]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] drivers/net/depca.c tidyup
On Mon, May 06, 2002 at 08:01:01PM +0100, Peter Denison wrote:

> - offset = (offset + ALIGN) & ~ALIGN;
> + offset = ALIGN(offset, 8);
>
> And from include/linux/cache.h:
>
> #define ALIGN(x,a) (((x)+(a)-1)&~((a)-1))
>
> So, we're replacing (offset + 8 - 1) & ~(8-1) = (offset + 7) & ~7
> with (((offset)+(8)-1)&~((8)-1)) = ((offset+7)&~7)

Argh, I was looking at the definition in linkage.h
Cursed ctags.

--
| Dave Jones. http://www.codemonkey.org.uk
| SuSE Labs
-
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 13:25    [W:0.068 / U:50.532 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site