< prev index next >

src/share/vm/utilities/macros.hpp

Print this page


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


 375 #define PPC32_ONLY(code)
 376 #define NOT_PPC32(code) code
 377 #endif
 378 
 379 #ifdef PPC64
 380 #define PPC64_ONLY(code) code
 381 #define NOT_PPC64(code)
 382 #else
 383 #define PPC64_ONLY(code)
 384 #define NOT_PPC64(code) code
 385 #endif
 386 
 387 #ifdef E500V2
 388 #define E500V2_ONLY(code) code
 389 #define NOT_E500V2(code)
 390 #else
 391 #define E500V2_ONLY(code)
 392 #define NOT_E500V2(code) code
 393 #endif
 394 
 395 
 396 #ifdef ARM
 397 #define ARM_ONLY(code) code
 398 #define NOT_ARM(code)
 399 #else
 400 #define ARM_ONLY(code)
 401 #define NOT_ARM(code) code








 402 #endif
 403 
 404 #ifdef JAVASE_EMBEDDED
 405 #define EMBEDDED_ONLY(code) code
 406 #define NOT_EMBEDDED(code)
 407 #else
 408 #define EMBEDDED_ONLY(code)
 409 #define NOT_EMBEDDED(code) code
 410 #endif
 411 
 412 #define define_pd_global(type, name, value) const type pd_##name = value;
 413 
 414 #endif // SHARE_VM_UTILITIES_MACROS_HPP
   1 /*
   2  * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *


 375 #define PPC32_ONLY(code)
 376 #define NOT_PPC32(code) code
 377 #endif
 378 
 379 #ifdef PPC64
 380 #define PPC64_ONLY(code) code
 381 #define NOT_PPC64(code)
 382 #else
 383 #define PPC64_ONLY(code)
 384 #define NOT_PPC64(code) code
 385 #endif
 386 
 387 #ifdef E500V2
 388 #define E500V2_ONLY(code) code
 389 #define NOT_E500V2(code)
 390 #else
 391 #define E500V2_ONLY(code)
 392 #define NOT_E500V2(code) code
 393 #endif
 394 

 395 #ifdef ARM
 396 #define ARM_ONLY(code) code
 397 #define NOT_ARM(code)
 398 #else
 399 #define ARM_ONLY(code)
 400 #define NOT_ARM(code) code
 401 #endif
 402 
 403 #ifdef ARM32
 404 #define ARM32_ONLY(code) code
 405 #define NOT_ARM32(code)
 406 #else
 407 #define ARM32_ONLY(code)
 408 #define NOT_ARM32(code) code
 409 #endif
 410 
 411 #ifdef JAVASE_EMBEDDED
 412 #define EMBEDDED_ONLY(code) code
 413 #define NOT_EMBEDDED(code)
 414 #else
 415 #define EMBEDDED_ONLY(code)
 416 #define NOT_EMBEDDED(code) code
 417 #endif
 418 
 419 #define define_pd_global(type, name, value) const type pd_##name = value;
 420 
 421 #endif // SHARE_VM_UTILITIES_MACROS_HPP
< prev index next >