int.hh (8902:75b524b64c28) int.hh (9921:ee049bfce978)
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 145 unchanged lines hidden (view full) ---

154
155 inline static IntRegIndex
156 INTREG_MICRO(int index)
157 {
158 return (IntRegIndex)(NUM_INTREGS + index);
159 }
160
161 inline static IntRegIndex
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 145 unchanged lines hidden (view full) ---

154
155 inline static IntRegIndex
156 INTREG_MICRO(int index)
157 {
158 return (IntRegIndex)(NUM_INTREGS + index);
159 }
160
161 inline static IntRegIndex
162 INTREG_PSEUDO(int index)
162 INTREG_IMPLICIT(int index)
163 {
164 return (IntRegIndex)(NUM_INTREGS + NumMicroIntRegs + index);
165 }
166
167 inline static IntRegIndex
163 {
164 return (IntRegIndex)(NUM_INTREGS + NumMicroIntRegs + index);
165 }
166
167 inline static IntRegIndex
168 INTREG_IMPLICIT(int index)
169 {
170 return (IntRegIndex)(NUM_INTREGS + NumMicroIntRegs +
171 NumPseudoIntRegs + index);
172 }
173
174 inline static IntRegIndex
175 INTREG_FOLDED(int index, int foldBit)
176 {
177 if ((index & 0x1C) == 4 && foldBit)
178 index = (index - 4) | foldBit;
179 return (IntRegIndex)index;
180 }
181}
182
183#endif // __ARCH_X86_INTREGS_HH__
168 INTREG_FOLDED(int index, int foldBit)
169 {
170 if ((index & 0x1C) == 4 && foldBit)
171 index = (index - 4) | foldBit;
172 return (IntRegIndex)index;
173 }
174}
175
176#endif // __ARCH_X86_INTREGS_HH__