Changeset 9212 in vbox for trunk/include/iprt/types.h
- Timestamp:
- May 29, 2008 9:38:38 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/types.h
r9145 r9212 707 707 708 708 /** Natural signed integer in the GC. */ 709 #if GC_ARCH_BITS == 32 709 710 typedef int32_t RTGCINT; 711 #elif GC_ARCH_BITS == 64 712 typedef int64_t RTGCINT; 713 #endif 710 714 /** Pointer to natural signed interger in GC. */ 711 715 typedef RTGCINT *PRTGCINT; … … 713 717 typedef const RTGCINT *PCRTGCINT; 714 718 715 /** Natural signed uninteger in the GC. */ 719 /** Natural unsigned integer in the GC. */ 720 #if GC_ARCH_BITS == 32 716 721 typedef uint32_t RTGCUINT; 717 /** Pointer to natural unsigned interger in GC. */ 722 #elif GC_ARCH_BITS == 64 723 typedef uint64_t RTGCUINT; 724 #endif 725 /** Pointer to natural unsigned integer in GC. */ 718 726 typedef RTGCUINT *PRTGCUINT; 719 /** Pointer to const natural unsigned inte rger in GC. */727 /** Pointer to const natural unsigned integer in GC. */ 720 728 typedef const RTGCUINT *PCRTGCUINT; 721 729 … … 725 733 #elif GC_ARCH_BITS == 64 726 734 typedef int64_t RTGCINTPTR; 727 #else728 # error Unsupported GC_ARCH_BITS value.729 735 #endif 730 736 /** Pointer to signed interger which can contain a GC pointer. */ … … 808 814 * HC and void pointer in GC. 809 815 */ 810 #ifdef IN_GC811 typedef void *RTGCPTR32;812 #else813 816 typedef RTGCUINTPTR32 RTGCPTR32; 814 #endif815 817 /** Pointer to a guest context pointer. */ 816 818 typedef RTGCPTR32 *PRTGCPTR32; … … 863 865 864 866 /** Unsigned integer register in the guest context. */ 867 typedef uint32_t RTGCUINTREG32; 868 /** Pointer to an unsigned integer register in the guest context. */ 869 typedef RTGCUINTREG32 *PRTGCUINTREG32; 870 /** Pointer to a const unsigned integer register in the guest context. */ 871 typedef const RTGCUINTREG32 *PCRTGCUINTREG32; 872 873 typedef uint64_t RTGCUINTREG64; 874 /** Pointer to an unsigned integer register in the guest context. */ 875 typedef RTGCUINTREG64 *PRTGCUINTREG64; 876 /** Pointer to a const unsigned integer register in the guest context. */ 877 typedef const RTGCUINTREG64 *PCRTGCUINTREG64; 878 865 879 #if GC_ARCH_BITS == 64 866 typedef uint64_tRTGCUINTREG;880 typedef RTGCUINTREG64 RTGCUINTREG; 867 881 #elif GC_ARCH_BITS == 32 868 typedef uint32_tRTGCUINTREG;882 typedef RTGCUINTREG32 RTGCUINTREG; 869 883 #else 870 884 # error "Unsupported GC_ARCH_BITS!" … … 904 918 #endif 905 919 920 /** Unsigned integer register in the current 32 bits context. */ 921 typedef uint32_t RTCCUINTREG32; 922 /** Pointer to an unsigned integer register in the current context. */ 923 typedef RTCCUINTREG32 *PRTCCUINTREG32; 924 /** Pointer to a const unsigned integer register in the current context. */ 925 typedef const RTCCUINTREG32 *PCRTCCUINTREG32; 926 927 /** Unsigned integer register in the current 64 bits context. */ 928 typedef uint64_t RTCCUINTREG64; 929 /** Pointer to an unsigned integer register in the current context. */ 930 typedef RTCCUINTREG64 *PRTCCUINTREG64; 931 /** Pointer to a const unsigned integer register in the current context. */ 932 typedef const RTCCUINTREG64 *PCRTCCUINTREG64; 933 906 934 /** Unsigned integer register in the current context. */ 907 935 #if ARCH_BITS == 32 908 typedef uint32_t RTCCUINTREG; 936 typedef RTCCUINTREG32 RTCCUINTREG; 937 /** Pointer to an unsigned integer register in the current context. */ 938 typedef PRTCCUINTREG32 PRTCCUINTREG; 939 /** Pointer to a const unsigned integer register in the current context. */ 940 typedef PCRTCCUINTREG32 PCRTCCUINTREG; 909 941 #elif ARCH_BITS == 64 910 typedef uint64_t RTCCUINTREG; 942 typedef RTCCUINTREG64 RTCCUINTREG; 943 /** Pointer to an unsigned integer register in the current context. */ 944 typedef PRTCCUINTREG64 PRTCCUINTREG; 945 /** Pointer to a const unsigned integer register in the current context. */ 946 typedef PCRTCCUINTREG64 PCRTCCUINTREG; 911 947 #else 912 948 # error "Unsupported ARCH_BITS!" 913 949 #endif 914 /** Pointer to an unsigned integer register in the current context. */915 typedef RTCCUINTREG *PRTCCUINTREG;916 /** Pointer to a const unsigned integer register in the current context. */917 typedef const RTCCUINTREG *PCRTCCUINTREG;918 919 /** @deprecated */920 typedef RTCCUINTREG RTUINTREG;921 /** @deprecated */922 typedef RTCCUINTREG *PRTUINTREG;923 /** @deprecated */924 typedef const RTCCUINTREG *PCRTUINTREG;925 950 926 951 /** @} */
Note:
See TracChangeset
for help on using the changeset viewer.