[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [PATCH] Loop Overflow Bug Fix
- From: Coda Highland <chighland@...>
- Date: Mon, 20 Nov 2017 08:29:12 -0600
On Sun, Nov 19, 2017 at 12:13 AM, KHMan <keinhong@gmail.com> wrote:
> Keeping 2s complement arithmetic in looping and its flaw(s) isn't
> perfect but it's a known quantity. Patching the looping code would make it
> "2s complement but not quite 2s complement". Either way, I hope we can have
> some updates to the section on numerical loops in the reference manual.
It's NOT 2s complement, though. It's 2s complement if you're working
with integer loops, but it's signed magnitude if you're working with
floating point, and Lua doesn't tell you explicitly which you're
working with unless you ask. So it's already "signed magnitude, except
when it's 2s complement" and Paige's patch brings it just a little bit
closer to "always signed magnitude".
/s/ Adam
- References:
- [PATCH] Loop Overflow Bug Fix, Paige DePol
- Re: [PATCH] Loop Overflow Bug Fix, dyngeccetor8
- Re: [PATCH] Loop Overflow Bug Fix, Paige DePol
- Re: [PATCH] Loop Overflow Bug Fix, Paige DePol
- Re: [PATCH] Loop Overflow Bug Fix, Roberto Ierusalimschy
- Re: [PATCH] Loop Overflow Bug Fix, Paige DePol
- Re: [PATCH] Loop Overflow Bug Fix, Roberto Ierusalimschy
- Re: [PATCH] Loop Overflow Bug Fix, Paige DePol
- Re: [PATCH] Loop Overflow Bug Fix, Paige DePol
- Re: [PATCH] Loop Overflow Bug Fix, Dirk Laurie
- Re: [PATCH] Loop Overflow Bug Fix, Hisham
- Re: [PATCH] Loop Overflow Bug Fix, Coda Highland
- Re: [PATCH] Loop Overflow Bug Fix, KHMan
- Re: [PATCH] Loop Overflow Bug Fix, Paige DePol
- Re: [PATCH] Loop Overflow Bug Fix, KHMan
- Re: [PATCH] Loop Overflow Bug Fix, Paige DePol
- Re: [PATCH] Loop Overflow Bug Fix, KHMan