mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-27 08:00:11 +00:00
Use existing roundup2() macro.
Suggested by: njl
This commit is contained in:
parent
42f470c0e5
commit
d5db4f4fe6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=160784
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user