commit | f10db6277dfd6dffb80b2182a256d35adb3134bc | [log] [tgz] |
---|---|---|
author | Herbert Xu <herbert@gondor.apana.org.au> | Wed Feb 06 01:37:05 2008 -0800 |
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | Wed Feb 06 10:41:04 2008 -0800 |
tree | a86607ebc3567c2e4098907f986466e07a74f268 | |
parent | b0940003f25dd3d2c54c4879809a432a35197f54 [diff] |
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>