1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-26 17:17:39 +01:00

(pr_ltop): Remove.

(pr_ptol): Remove.

(Logical change 1.292)
This commit is contained in:
hp.com!davidm 2005-05-17 13:24:49 +00:00
parent aac9a2c1b6
commit 8462f1f87d

View file

@ -1,5 +1,5 @@
/* libunwind - a platform-independent unwind library /* libunwind - a platform-independent unwind library
Copyright (C) 2002-2004 Hewlett-Packard Co Copyright (C) 2002-2005 Hewlett-Packard Co
Contributed by David Mosberger-Tang <davidm@hpl.hp.com> Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
This file is part of libunwind. This file is part of libunwind.
@ -71,31 +71,3 @@ rotate_fr (struct cursor *c, int reg)
Debug (15, "rrb.fr=%u, f%d -> f%d\n", rrb_fr, reg, preg); Debug (15, "rrb.fr=%u, f%d -> f%d\n", rrb_fr, reg, preg);
return preg; return preg;
} }
/* Apply logical-to-physical rotation. */
static inline unw_word_t
pr_ltop (struct cursor *c, unw_word_t pr)
{
unw_word_t rrb_pr, mask, rot;
rrb_pr = (c->cfm >> 32) & 0x3f;
rot = pr >> 16;
mask = ((unw_word_t) 1 << rrb_pr) - 1;
rot = ((pr & mask) << (48 - rrb_pr)) | ((pr >> rrb_pr) & mask);
return (pr & 0xffff) | (rot << 16);
}
/* Apply physical-to-logical rotation. */
static inline unw_word_t
pr_ptol (struct cursor *c, unw_word_t pr)
{
unw_word_t rrb_pr, mask, rot;
rrb_pr = 48 - ((c->cfm >> 32) & 0x3f);
rot = pr >> 16;
mask = ((unw_word_t) 1 << rrb_pr) - 1;
rot = ((pr & mask) << (48 - rrb_pr)) | ((pr >> rrb_pr) & mask);
return (pr & 0xffff) | (rot << 16);
}