163 // offset_of as it is defined for gcc. 164 #define offset_of(klass,field) (size_t)((intx)&(((klass*)16)->field) - 16) 165 166 // Some constant sizes used throughout the AIX port 167 #define SIZE_1K ((uint64_t) UCONST64( 0x400)) 168 #define SIZE_4K ((uint64_t) UCONST64( 0x1000)) 169 #define SIZE_64K ((uint64_t) UCONST64( 0x10000)) 170 #define SIZE_1M ((uint64_t) UCONST64( 0x100000)) 171 #define SIZE_4M ((uint64_t) UCONST64( 0x400000)) 172 #define SIZE_8M ((uint64_t) UCONST64( 0x800000)) 173 #define SIZE_16M ((uint64_t) UCONST64( 0x1000000)) 174 #define SIZE_256M ((uint64_t) UCONST64( 0x10000000)) 175 #define SIZE_1G ((uint64_t) UCONST64( 0x40000000)) 176 #define SIZE_2G ((uint64_t) UCONST64( 0x80000000)) 177 #define SIZE_4G ((uint64_t) UCONST64( 0x100000000)) 178 #define SIZE_16G ((uint64_t) UCONST64( 0x400000000)) 179 #define SIZE_32G ((uint64_t) UCONST64( 0x800000000)) 180 #define SIZE_64G ((uint64_t) UCONST64( 0x1000000000)) 181 #define SIZE_1T ((uint64_t) UCONST64(0x10000000000)) 182 183 184 #endif // SHARE_VM_UTILITIES_GLOBALDEFINITIONS_XLC_HPP | 163 // offset_of as it is defined for gcc. 164 #define offset_of(klass,field) (size_t)((intx)&(((klass*)16)->field) - 16) 165 166 // Some constant sizes used throughout the AIX port 167 #define SIZE_1K ((uint64_t) UCONST64( 0x400)) 168 #define SIZE_4K ((uint64_t) UCONST64( 0x1000)) 169 #define SIZE_64K ((uint64_t) UCONST64( 0x10000)) 170 #define SIZE_1M ((uint64_t) UCONST64( 0x100000)) 171 #define SIZE_4M ((uint64_t) UCONST64( 0x400000)) 172 #define SIZE_8M ((uint64_t) UCONST64( 0x800000)) 173 #define SIZE_16M ((uint64_t) UCONST64( 0x1000000)) 174 #define SIZE_256M ((uint64_t) UCONST64( 0x10000000)) 175 #define SIZE_1G ((uint64_t) UCONST64( 0x40000000)) 176 #define SIZE_2G ((uint64_t) UCONST64( 0x80000000)) 177 #define SIZE_4G ((uint64_t) UCONST64( 0x100000000)) 178 #define SIZE_16G ((uint64_t) UCONST64( 0x400000000)) 179 #define SIZE_32G ((uint64_t) UCONST64( 0x800000000)) 180 #define SIZE_64G ((uint64_t) UCONST64( 0x1000000000)) 181 #define SIZE_1T ((uint64_t) UCONST64(0x10000000000)) 182 183 #ifndef USE_LIBRARY_BASED_TLS_ONLY 184 #define THREAD_LOCAL_DECL __thread 185 #endif 186 187 #endif // SHARE_VM_UTILITIES_GLOBALDEFINITIONS_XLC_HPP |