ALIGN_UP - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _PHNT_NTDEF_H
#ifndef _NTDEF_
#if defined(__INTELLISENSE__) || defined(DOXYGEN)
#ifndef ALIGN_UP

/**
 * The ALIGN_UP macro aligns a value up using sizeof(Type) as the boundary.
 *
 * \param Length The value to align.
 * \param Type   The type whose size is used as the alignment boundary.
 * \return @p Length rounded up to the nearest multiple of sizeof(@p Type).
 * \remarks This is a convenience wrapper over ALIGN_UP_BY.
 */
#define ALIGN_UP(Length, Type) ALIGN_UP_BY(Length, sizeof(Type))

#endif
#endif
#endif
#endif

View code on GitHub
#ifndef _PHNT_NTDEF_H
#ifndef _NTDEF_
#if defined(__INTELLISENSE__) || defined(DOXYGEN)
// ...
#else
#ifndef ALIGN_UP

#define ALIGN_UP(Length, Type) ALIGN_UP_BY(Length, sizeof(Type))

#endif
#endif
#endif
#endif

View code on GitHub

NtDoc

No description available.