VirtualBox

Changeset 13208 in vbox


Ignore:
Timestamp:
Oct 13, 2008 11:57:51 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
37755
Message:

iprt: added RT_LODWORD and RT_HIDWORD.

File:
1 edited

Legend:

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

    r12676 r13208  
    10001000#define RT_ABS(Value)           ((Value) >= 0 ? (Value) : -(Value))
    10011001
     1002/** @def RT_LODWORD
     1003 * Gets the low dword (=uint32_t) of something. */
     1004#define RT_LODWORD(a)            ((a) & UINT32_C(0xfffffffff))
     1005
     1006/** @def RT_HIDWORD
     1007 * Gets the high dword (=uint32_t) og a 64-bit of something. */
     1008#define RT_LODWORD(a)            ((a) >> 32)
     1009
    10021010/** @def RT_LOWORD
    10031011 * Gets the low word (=uint16_t) of something. */
     
    10051013
    10061014/** @def RT_HIWORD
    1007  * Gets the high word (=uint16_t) of a 32 bit something. */
     1015 * Gets the high word (=uint16_t) of a 32-bit something. */
    10081016#define RT_HIWORD(a)            ((a) >> 16)
    10091017
     
    10131021
    10141022/** @def RT_HIBYTE
    1015  * Gets the low byte of a 16 bit something. */
     1023 * Gets the low byte of a 16-bit something. */
    10161024#define RT_HIBYTE(a)            ((a) >> 8)
    10171025
Note: See TracChangeset for help on using the changeset viewer.

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