< prev index next >

src/share/vm/utilities/globalDefinitions_xlc.hpp

Print this page
rev 10456 : 8151593: Cleanup definition/usage of INLINE/NOINLINE macros and add xlC support
Contributed-by: matthias.baesken@sap.com
   1 /*
   2  * Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.
   3  * Copyright (c) 2012, 2013 SAP SE. All rights reserved.
   4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5  *
   6  * This code is free software; you can redistribute it and/or modify it
   7  * under the terms of the GNU General Public License version 2 only, as
   8  * published by the Free Software Foundation.
   9  *
  10  * This code is distributed in the hope that it will be useful, but WITHOUT
  11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13  * version 2 for more details (a copy is included in the LICENSE file that
  14  * accompanied this code).
  15  *
  16  * You should have received a copy of the GNU General Public License version
  17  * 2 along with this work; if not, write to the Free Software Foundation,
  18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19  *
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.
  23  *


 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
   1 /*
   2  * Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved.
   3  * Copyright (c) 2012, 2016 SAP SE. All rights reserved.
   4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5  *
   6  * This code is free software; you can redistribute it and/or modify it
   7  * under the terms of the GNU General Public License version 2 only, as
   8  * published by the Free Software Foundation.
   9  *
  10  * This code is distributed in the hope that it will be useful, but WITHOUT
  11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13  * version 2 for more details (a copy is included in the LICENSE file that
  14  * accompanied this code).
  15  *
  16  * You should have received a copy of the GNU General Public License version
  17  * 2 along with this work; if not, write to the Free Software Foundation,
  18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19  *
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.
  23  *


 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 // Inlining support
 188 #define NOINLINE
 189 #define ALWAYSINLINE __attribute__((always_inline))
 190 
 191 #endif // SHARE_VM_UTILITIES_GLOBALDEFINITIONS_XLC_HPP
< prev index next >