Avoid divide in IS_ALIGN
commitf10db6277dfd6dffb80b2182a256d35adb3134bc
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 6 Feb 2008 09:37:05 +0000 (6 01:37 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 6 Feb 2008 18:41:04 +0000 (6 10:41 -0800)
treea86607ebc3567c2e4098907f986466e07a74f268
parentb0940003f25dd3d2c54c4879809a432a35197f54
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