diff options
author | pjd <pjd@FreeBSD.org> | 2006-07-28 14:46:19 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2006-07-28 14:46:19 +0000 |
commit | cea88d1e4713b0b9d1e2fd4c071f4eb03373498e (patch) | |
tree | 40e8e9e0a836d753fdb48c12246fb45b4a8bd186 /sys | |
parent | f27e5b6199d6bd03ed0ce3acda9476211b63a736 (diff) | |
download | FreeBSD-src-cea88d1e4713b0b9d1e2fd4c071f4eb03373498e.zip FreeBSD-src-cea88d1e4713b0b9d1e2fd4c071f4eb03373498e.tar.gz |
Use existing roundup2() macro.
Suggested by: njl
Diffstat (limited to 'sys')
-rw-r--r-- | sys/crypto/via/padlock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/crypto/via/padlock.h b/sys/crypto/via/padlock.h index 9b326dd..7d928ba 100644 --- a/sys/crypto/via/padlock.h +++ b/sys/crypto/via/padlock.h @@ -72,7 +72,7 @@ struct padlock_session { TAILQ_ENTRY(padlock_session) ses_next; }; -#define PADLOCK_ALIGN(p) (void *)((uintptr_t)(p) - (((uintptr_t)(p) - 1) % 16) + 15) +#define PADLOCK_ALIGN(p) (void *)(roundup2((uintptr_t)(p), 16)) int padlock_cipher_setup(struct padlock_session *ses, struct cryptoini *encini); |