ReactOS
0.4.16-dev-197-g92996da
align.h
Go to the documentation of this file.
1
/*
2
* PROJECT: MKISOFS for the ReactOS Build System
3
* LICENSE: GNU GPLv2 as published by the Free Software Foundation
4
* AUTHORS: Colin Finck <colin@reactos.org>
5
*/
6
7
#ifndef __ALIGN_H
8
#define __ALIGN_H
9
10
#ifdef __LP64__
11
#define ALIGN_LMASK 7
12
#else
13
#define ALIGN_LMASK 3
14
#endif
15
16
#define xaligned(a, s) ((((UIntptr_t)(a)) & (s)) == 0)
17
#define x2aligned(a, b, s) (((((UIntptr_t)(a)) | ((UIntptr_t)(b))) & (s)) == 0)
18
19
#define laligned(a) xaligned(a, ALIGN_LMASK)
20
#define l2aligned(a, b) x2aligned(a, b, ALIGN_LMASK)
21
22
#endif
sdk
tools
mkisofs
reactos
align.h
Generated on Wed Oct 30 2024 06:13:51 for ReactOS by
1.9.6