diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2008-02-06 10:37:05 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-06 19:41:04 +0100 |
commit | f10db6277dfd6dffb80b2182a256d35adb3134bc (patch) | |
tree | a86607ebc3567c2e4098907f986466e07a74f268 /kernel | |
parent | vt: bitlock fix (diff) | |
download | linux-f10db6277dfd6dffb80b2182a256d35adb3134bc.tar.xz linux-f10db6277dfd6dffb80b2182a256d35adb3134bc.zip |
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>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions