/* Return the (rotated) index for floating point register REGNUM (REGNUM must be in the range from 32-127, result is in the range from 0-95.  */
static unsigned long fph_index(struct pt_regs *regs, long regnum)
/* Return the (rotated) index for floating point register REGNUM (REGNUM must be in the range from 32-127, result is in the range from 0-95.  */
static unsigned long fph_index(struct pt_regs *regs, long regnum)
{
	unsigned long rrb_fr = (regs->cr_ifs >> 25) & 0x7f;
	return rotate_reg(96, rrb_fr, (regnum - IA64_FIRST_ROTATING_FR));
}