VirtualBox

Changeset 78939 in vbox


Ignore:
Timestamp:
Jun 3, 2019 3:03:15 PM (5 years ago)
Author:
vboxsync
Message:

iprt/system.h: Macros for getting the component parts out of a RTSYSTEM_MAKE_NT_VERSION/RTSystemGetNtVersion value.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/system.h

    r76585 r78939  
    274274# define RTSYSTEM_MAKE_NT_VERSION(a_uMajor, a_uMinor, a_uBuild) \
    275275    ( ((uint64_t)(a_uMajor) << 52) | ((uint64_t)((a_uMinor) & 0xfffU) << 40) | ((uint32_t)(a_uBuild)) )
     276/** Extracts the major version number from a RTSYSTEM_MAKE_NT_VERSION value. */
     277# define RTSYSTEM_NT_VERSION_GET_MAJOR(a_uNtVersion) ((uint32_t)((a_uNtVersion) >> 52))
     278/** Extracts the minor version number from a RTSYSTEM_MAKE_NT_VERSION value. */
     279# define RTSYSTEM_NT_VERSION_GET_MINOR(a_uNtVersion) ((uint32_t)((a_uNtVersion) >> 40) & UINT32_C(0xfff))
     280/** Extracts the build number from a RTSYSTEM_MAKE_NT_VERSION value. */
     281# define RTSYSTEM_NT_VERSION_GET_BUILD(a_uNtVersion) ((uint32_t)(a_uNtVersion))
    276282
    277283/**
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette