clean up offsetToFrameIndex code

This commit is contained in:
Joel Dice 2009-02-26 18:53:35 -07:00
parent d7d3dd5055
commit 73aa499371

View File

@ -666,9 +666,7 @@ offsetToFrameIndex(Context* c, unsigned offset)
{ {
unsigned normalizedOffset = offset / BytesPerWord; unsigned normalizedOffset = offset / BytesPerWord;
return ((normalizedOffset return ((normalizedOffset >= c->alignedFrameSize) ?
>= usableFrameSize(c)
+ c->arch->frameFooterSize()) ?
(normalizedOffset (normalizedOffset
- (c->arch->frameFooterSize() * 2) - (c->arch->frameFooterSize() * 2)
- c->arch->frameHeaderSize()) : - c->arch->frameHeaderSize()) :