Changeset 5328
- Timestamp:
- 10/16/07 14:39:14 (1 year ago)
- Files:
-
- trunk/include/iprt/cdefs.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/include/iprt/cdefs.h
r5104 r5328 1181 1181 # define VALID_PTR(ptr) ( (uintptr_t)(ptr) >= _4G \ 1182 1182 && !((uintptr_t)(ptr) & 0xffff800000000000ULL) ) 1183 # elif defined(RT_OS_SOLARIS) /* The kernel only used the top 2TB, but keep it simple. */ 1184 # define VALID_PTR(ptr) ( (uintptr_t)(ptr) + 0x1000U >= 0x2000U \ 1185 && ( ((uintptr_t)(ptr) & 0xffff800000000000ULL) == 0xffff800000000000ULL \ 1186 || ((uintptr_t)(ptr) & 0xffff800000000000ULL) == 0) ) 1183 1187 # else 1184 1188 # define VALID_PTR(ptr) ( (uintptr_t)(ptr) + 0x1000U >= 0x2000U \

