VirtualBox

Changeset 14961 in vbox for trunk/include/iprt/types.h


Ignore:
Timestamp:
Dec 3, 2008 9:27:50 PM (16 years ago)
Author:
vboxsync
Message:

iprt/types.h: signed current-context register type.

File:
1 edited

Legend:

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

    r14023 r14961  
    979979#endif
    980980
    981 /** Unsigned integer register in the current 32 bits context. */
    982 typedef uint32_t              RTCCUINTREG32;
    983 /** Pointer to an unsigned integer register in the current context. */
    984 typedef RTCCUINTREG32        *PRTCCUINTREG32;
    985 /** Pointer to a const unsigned integer register in the current context. */
    986 typedef const RTCCUINTREG32  *PCRTCCUINTREG32;
    987 
    988 /** Unsigned integer register in the current 64 bits context. */
    989 typedef uint64_t              RTCCUINTREG64;
    990 /** Pointer to an unsigned integer register in the current context. */
    991 typedef RTCCUINTREG64        *PRTCCUINTREG64;
    992 /** Pointer to a const unsigned integer register in the current context. */
    993 typedef const RTCCUINTREG64  *PCRTCCUINTREG64;
    994 
    995981/** Unsigned integer register in the current context. */
    996982#if ARCH_BITS == 32
    997 typedef RTCCUINTREG32         RTCCUINTREG;
     983typedef uint32_t                RTCCUINTREG;
     984#elif ARCH_BITS == 64
     985typedef uint64_t                RTCCUINTREG;
     986#else
     987# error "Unsupported ARCH_BITS!"
     988#endif
    998989/** Pointer to an unsigned integer register in the current context. */
    999 typedef PRTCCUINTREG32        PRTCCUINTREG;
     990typedef RTCCUINTREG            *PRTCCUINTREG;
    1000991/** Pointer to a const unsigned integer register in the current context. */
    1001 typedef PCRTCCUINTREG32       PCRTCCUINTREG;
     992typedef RTCCUINTREG const      *PCRTCCUINTREG;
     993
     994/** Signed integer register in the current context. */
     995#if ARCH_BITS == 32
     996typedef int32_t                 RTCCINTREG;
    1002997#elif ARCH_BITS == 64
    1003 typedef RTCCUINTREG64         RTCCUINTREG;
    1004 /** Pointer to an unsigned integer register in the current context. */
    1005 typedef PRTCCUINTREG64      PRTCCUINTREG;
    1006 /** Pointer to a const unsigned integer register in the current context. */
    1007 typedef PCRTCCUINTREG64     PCRTCCUINTREG;
    1008 #else
    1009 # error "Unsupported ARCH_BITS!"
    1010 #endif
     998typedef int64_t                 RTCCINTREG;
     999#endif
     1000/** Pointer to a signed integer register in the current context. */
     1001typedef RTCCINTREG             *PRTCCINTREG;
     1002/** Pointer to a const signed integer register in the current context. */
     1003typedef RTCCINTREG const       *PCRTCCINTREG;
    10111004
    10121005/** @} */
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