VirtualBox

Changeset 30068 in vbox


Ignore:
Timestamp:
Jun 7, 2010 12:40:17 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
62439
Message:

iprt/types.h: Added missing RTINTPTR_MAX and RTINTPTR_MIN defines.

File:
1 edited

Legend:

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

    r28800 r30068  
    464464/** Pointer const to signed integer which can contain both GC and HC pointers. */
    465465typedef const RTINTPTR *PCRTINTPTR;
     466/** The maximum value the RTINTPTR type can hold. */
     467#if (HC_ARCH_BITS == 32 && GC_ARCH_BITS == 32)
     468# define RTINTPTR_MAX   INT32_MAX
     469#elif (HC_ARCH_BITS == 64 || GC_ARCH_BITS == 64)
     470# define RTINTPTR_MAX   INT64_MAX
     471#else
     472#  error Unsupported HC_ARCH_BITS and/or GC_ARCH_BITS values.
     473#endif
     474/** The minimum value the RTINTPTR type can hold. */
     475#if (HC_ARCH_BITS == 32 && GC_ARCH_BITS == 32)
     476# define RTINTPTR_MIN   INT32_MIN
     477#elif (HC_ARCH_BITS == 64 || GC_ARCH_BITS == 64)
     478# define RTINTPTR_MIN   INT64_MIN
     479#else
     480#  error Unsupported HC_ARCH_BITS and/or GC_ARCH_BITS values.
     481#endif
    466482
    467483/** Unsigned integer which can contain both GC and HC pointers. */
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