annotate hotspot/src/cpu/ppc/vm/vmreg_ppc.hpp @ 25715:d5a8dbdc5150

8049325: Introduce and clean up umbrella headers for the files in the cpu subdirectories. Summary: Introduce and clean up umbrella headers for the files in the cpu subdirectories. Reviewed-by: lfoltan, coleenp, dholmes
author goetz
date Fri, 04 Jul 2014 11:46:01 +0200
parents 28258dd5cb2e
children cc13089c6327
rev   line source
goetz@22824 1 /*
goetz@22824 2 * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
goetz@22824 3 * Copyright 2012, 2013 SAP AG. All rights reserved.
goetz@22824 4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
goetz@22824 5 *
goetz@22824 6 * This code is free software; you can redistribute it and/or modify it
goetz@22824 7 * under the terms of the GNU General Public License version 2 only, as
goetz@22824 8 * published by the Free Software Foundation.
goetz@22824 9 *
goetz@22824 10 * This code is distributed in the hope that it will be useful, but WITHOUT
goetz@22824 11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
goetz@22824 12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
goetz@22824 13 * version 2 for more details (a copy is included in the LICENSE file that
goetz@22824 14 * accompanied this code).
goetz@22824 15 *
goetz@22824 16 * You should have received a copy of the GNU General Public License version
goetz@22824 17 * 2 along with this work; if not, write to the Free Software Foundation,
goetz@22824 18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
goetz@22824 19 *
goetz@22824 20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
goetz@22824 21 * or visit www.oracle.com if you need additional information or have any
goetz@22824 22 * questions.
goetz@22824 23 *
goetz@22824 24 */
goetz@22824 25
goetz@22824 26 #ifndef CPU_PPC_VM_VMREG_PPC_HPP
goetz@22824 27 #define CPU_PPC_VM_VMREG_PPC_HPP
goetz@22824 28
goetz@25715 29 inline bool is_Register() {
goetz@25715 30 return (unsigned int)value() < (unsigned int)ConcreteRegisterImpl::max_gpr;
goetz@25715 31 }
goetz@22824 32
goetz@25715 33 inline bool is_FloatRegister() {
goetz@25715 34 return value() >= ConcreteRegisterImpl::max_gpr &&
goetz@25715 35 value() < ConcreteRegisterImpl::max_fpr;
goetz@25715 36 }
goetz@25715 37
goetz@25715 38 inline Register as_Register() {
goetz@25715 39 assert(is_Register() && is_even(value()), "even-aligned GPR name");
goetz@25715 40 return ::as_Register(value()>>1);
goetz@25715 41 }
goetz@25715 42
goetz@25715 43 inline FloatRegister as_FloatRegister() {
goetz@25715 44 assert(is_FloatRegister() && is_even(value()), "must be");
goetz@25715 45 return ::as_FloatRegister((value() - ConcreteRegisterImpl::max_gpr) >> 1);
goetz@25715 46 }
goetz@25715 47
goetz@25715 48 inline bool is_concrete() {
goetz@25715 49 assert(is_reg(), "must be");
goetz@25715 50 return is_even(value());
goetz@25715 51 }
goetz@22824 52
goetz@22824 53 #endif // CPU_PPC_VM_VMREG_PPC_HPP