]> git.baikalelectronics.ru Git - kernel.git/commit
Avoid divide in IS_ALIGN
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 6 Feb 2008 09:37:05 +0000 (01:37 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 6 Feb 2008 18:41:04 +0000 (10:41 -0800)
commitcba3c23932d32d422ed794360f124af2ec8820f0
treea86607ebc3567c2e4098907f986466e07a74f268
parent7001e6c668c23e5df60ad26eb2c64801865dad16
Avoid divide in IS_ALIGN

I was happy to discover the brand new IS_ALIGN macro and quickly used it in
my code.  To my dismay I found that the generated code used division to
perform the test.

This patch fixes it by changing the % test to an &.  This avoids the
division.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/kernel.h