VirtualBox

Changeset 13208

Show
Ignore:
Timestamp:
10/13/08 13:57:51 (3 months ago)
Author:
vboxsync
Message:

iprt: added RT_LODWORD and RT_HIDWORD.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy