ReactOS 0.4.15-dev-7942-gd23573b
fxcommonbuffer.hpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  FxCommonBuffer
 

Functions

FORCEINLINE PVOID FX_ALIGN_VIRTUAL_ADDRESS (__in PVOID VA, __in size_t AlignTo)
 
FORCEINLINE ULONGLONG FX_ALIGN_LOGICAL_ADDRESS (__in PHYSICAL_ADDRESS LA, __in size_t AlignTo)
 

Function Documentation

◆ FX_ALIGN_LOGICAL_ADDRESS()

FORCEINLINE ULONGLONG FX_ALIGN_LOGICAL_ADDRESS ( __in PHYSICAL_ADDRESS  LA,
__in size_t  AlignTo 
)

Definition at line 43 of file fxcommonbuffer.hpp.

47{
48 return (LA.QuadPart + AlignTo) & ~((ULONGLONG)AlignTo);
49}
uint64_t ULONGLONG
Definition: typedefs.h:67

Referenced by FxCommonBuffer::AllocateCommonBuffer().

◆ FX_ALIGN_VIRTUAL_ADDRESS()

FORCEINLINE PVOID FX_ALIGN_VIRTUAL_ADDRESS ( __in PVOID  VA,
__in size_t  AlignTo 
)

Definition at line 33 of file fxcommonbuffer.hpp.

37{
38 return (PVOID)(((ULONG_PTR)VA + AlignTo) & ~AlignTo);
39}
#define ULONG_PTR
Definition: config.h:101

Referenced by FxCommonBuffer::AllocateCommonBuffer().