ReactOS 0.4.15-dev-7942-gd23573b
align.h File Reference

Go to the source code of this file.

Macros

#define ALIGN_LMASK   3
 
#define xaligned(a, s)   ((((UIntptr_t)(a)) & (s)) == 0)
 
#define x2aligned(a, b, s)   (((((UIntptr_t)(a)) | ((UIntptr_t)(b))) & (s)) == 0)
 
#define laligned(a)   xaligned(a, ALIGN_LMASK)
 
#define l2aligned(a, b)   x2aligned(a, b, ALIGN_LMASK)
 

Macro Definition Documentation

◆ ALIGN_LMASK

#define ALIGN_LMASK   3

Definition at line 13 of file align.h.

◆ l2aligned

#define l2aligned (   a,
  b 
)    x2aligned(a, b, ALIGN_LMASK)

Definition at line 20 of file align.h.

◆ laligned

#define laligned (   a)    xaligned(a, ALIGN_LMASK)

Definition at line 19 of file align.h.

◆ x2aligned

#define x2aligned (   a,
  b,
  s 
)    (((((UIntptr_t)(a)) | ((UIntptr_t)(b))) & (s)) == 0)

Definition at line 17 of file align.h.

◆ xaligned

#define xaligned (   a,
  s 
)    ((((UIntptr_t)(a)) & (s)) == 0)

Definition at line 16 of file align.h.