Use existing roundup2() macro.

Suggested by:	njl
This commit is contained in:
Pawel Jakub Dawidek 2006-07-28 14:46:19 +00:00
parent 42f470c0e5
commit d5db4f4fe6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=160784

View File

@ -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);