Changeset 58625 in vbox
- Timestamp:
- Nov 10, 2015 1:13:54 AM (9 years ago)
- File:
-
- 1 edited
-
trunk/include/iprt/types.h (modified) (17 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/types.h
r57572 r58625 978 978 #elif HC_ARCH_BITS == 64 979 979 typedef int64_t RTHCINTPTR; 980 #elif HC_ARCH_BITS == 16 981 typedef int16_t RTHCINTPTR; 980 982 #else 981 983 # error Unsupported HC_ARCH_BITS value. … … 988 990 #if HC_ARCH_BITS == 32 989 991 # define RTHCINTPTR_MAX INT32_MAX 990 #el se992 #elif HC_ARCH_BITS == 64 991 993 # define RTHCINTPTR_MAX INT64_MAX 994 #else 995 # define RTHCINTPTR_MAX INT16_MAX 992 996 #endif 993 997 /** Min RTHCINTPTR value. */ 994 998 #if HC_ARCH_BITS == 32 995 999 # define RTHCINTPTR_MIN INT32_MIN 996 #el se1000 #elif HC_ARCH_BITS == 64 997 1001 # define RTHCINTPTR_MIN INT64_MIN 1002 #else 1003 # define RTHCINTPTR_MIN INT16_MIN 998 1004 #endif 999 1005 … … 1003 1009 #elif R3_ARCH_BITS == 64 1004 1010 typedef int64_t RTR3INTPTR; 1011 #elif R3_ARCH_BITS == 16 1012 typedef int16_t RTR3INTPTR; 1005 1013 #else 1006 1014 # error Unsupported R3_ARCH_BITS value. … … 1013 1021 #if R3_ARCH_BITS == 32 1014 1022 # define RTR3INTPTR_MAX INT32_MAX 1015 #el se1023 #elif R3_ARCH_BITS == 64 1016 1024 # define RTR3INTPTR_MAX INT64_MAX 1025 #else 1026 # define RTR3INTPTR_MAX INT16_MAX 1017 1027 #endif 1018 1028 /** Min RTR3INTPTR value. */ 1019 1029 #if R3_ARCH_BITS == 32 1020 1030 # define RTR3INTPTR_MIN INT32_MIN 1021 #el se1031 #elif R3_ARCH_BITS == 64 1022 1032 # define RTR3INTPTR_MIN INT64_MIN 1033 #else 1034 # define RTR3INTPTR_MIN INT16_MIN 1023 1035 #endif 1024 1036 … … 1028 1040 #elif R0_ARCH_BITS == 64 1029 1041 typedef int64_t RTR0INTPTR; 1042 #elif R0_ARCH_BITS == 16 1043 typedef int16_t RTR0INTPTR; 1030 1044 #else 1031 1045 # error Unsupported R0_ARCH_BITS value. … … 1038 1052 #if R0_ARCH_BITS == 32 1039 1053 # define RTR0INTPTR_MAX INT32_MAX 1040 #el se1054 #elif R0_ARCH_BITS == 64 1041 1055 # define RTR0INTPTR_MAX INT64_MAX 1056 #else 1057 # define RTR0INTPTR_MAX INT16_MAX 1042 1058 #endif 1043 1059 /** Min RTHCINTPTR value. */ 1044 1060 #if R0_ARCH_BITS == 32 1045 1061 # define RTR0INTPTR_MIN INT32_MIN 1046 #el se1062 #elif R0_ARCH_BITS == 64 1047 1063 # define RTR0INTPTR_MIN INT64_MIN 1064 #else 1065 # define RTR0INTPTR_MIN INT16_MIN 1048 1066 #endif 1049 1067 … … 1054 1072 #elif HC_ARCH_BITS == 64 1055 1073 typedef uint64_t RTHCUINTPTR; 1074 #elif HC_ARCH_BITS == 16 1075 typedef uint16_t RTHCUINTPTR; 1056 1076 #else 1057 1077 # error Unsupported HC_ARCH_BITS value. … … 1064 1084 #if HC_ARCH_BITS == 32 1065 1085 # define RTHCUINTPTR_MAX UINT32_MAX 1066 #el se1086 #elif HC_ARCH_BITS == 64 1067 1087 # define RTHCUINTPTR_MAX UINT64_MAX 1088 #else 1089 # define RTHCUINTPTR_MAX UINT16_MAX 1068 1090 #endif 1069 1091 … … 1073 1095 #elif R3_ARCH_BITS == 64 1074 1096 typedef uint64_t RTR3UINTPTR; 1097 #elif R3_ARCH_BITS == 16 1098 typedef uint16_t RTR3UINTPTR; 1075 1099 #else 1076 1100 # error Unsupported R3_ARCH_BITS value. … … 1083 1107 #if R3_ARCH_BITS == 32 1084 1108 # define RTR3UINTPTR_MAX UINT32_MAX 1085 #el se1109 #elif R3_ARCH_BITS == 64 1086 1110 # define RTR3UINTPTR_MAX UINT64_MAX 1111 #else 1112 # define RTR3UINTPTR_MAX UINT16_MAX 1087 1113 #endif 1088 1114 … … 1092 1118 #elif R0_ARCH_BITS == 64 1093 1119 typedef uint64_t RTR0UINTPTR; 1120 #elif R0_ARCH_BITS == 16 1121 typedef uint16_t RTR0UINTPTR; 1094 1122 #else 1095 1123 # error Unsupported R0_ARCH_BITS value. … … 1100 1128 typedef const RTR0UINTPTR *PCRTR0UINTPTR; 1101 1129 /** Max RTR0UINTTPR value. */ 1102 #if HC_ARCH_BITS == 321130 #if R0_ARCH_BITS == 32 1103 1131 # define RTR0UINTPTR_MAX UINT32_MAX 1104 #el se1132 #elif R0_ARCH_BITS == 64 1105 1133 # define RTR0UINTPTR_MAX UINT64_MAX 1134 #else 1135 # define RTR0UINTPTR_MAX UINT16_MAX 1106 1136 #endif 1107 1137 … … 1189 1219 #elif HC_ARCH_BITS == 64 1190 1220 typedef uint64_t RTHCUINTREG; 1221 #elif HC_ARCH_BITS == 16 1222 typedef uint16_t RTHCUINTREG; 1191 1223 #else 1192 1224 # error "Unsupported HC_ARCH_BITS!" … … 1202 1234 #elif R3_ARCH_BITS == 64 1203 1235 typedef uint64_t RTR3UINTREG; 1236 #elif R3_ARCH_BITS == 16 1237 typedef uint16_t RTR3UINTREG; 1204 1238 #else 1205 1239 # error "Unsupported R3_ARCH_BITS!" … … 1215 1249 #elif R0_ARCH_BITS == 64 1216 1250 typedef uint64_t RTR0UINTREG; 1251 #elif R0_ARCH_BITS == 16 1252 typedef uint16_t RTR0UINTREG; 1217 1253 #else 1218 1254 # error "Unsupported R3_ARCH_BITS!" … … 1508 1544 #elif ARCH_BITS == 64 1509 1545 typedef uint64_t RTCCUINTREG; 1546 #elif ARCH_BITS == 16 1547 typedef uint16_t RTCCUINTREG; 1510 1548 #else 1511 1549 # error "Unsupported ARCH_BITS!" … … 1521 1559 #elif ARCH_BITS == 64 1522 1560 typedef int64_t RTCCINTREG; 1561 #elif ARCH_BITS == 16 1562 typedef int16_t RTCCINTREG; 1523 1563 #endif 1524 1564 /** Pointer to a signed integer register in the current context. */
Note:
See TracChangeset
for help on using the changeset viewer.

