[Legup-bugs] [Bug 46] new jpeg fails

bugzilla-daemon at legup.org bugzilla-daemon at legup.org
Tue Dec 7 09:25:37 EST 2010


http://legup.org/bugs/show_bug.cgi?id=46

--- Comment #1 from Victor <stetorvs at gmail.com>  ---
The comment error has been fixed in the latest commit. Here's a simplification
of the division error:

#include <stdio.h>

int main() {

    volatile signed a = -11;
    a /= -5;
    printf("%d\n", a);
    return a - 2;
}

This should be -11 / -5 = 2, but the rounding goes the other way and produces
3. This may be an error in Altera's division or we used the wrong number of
cycles for the pipeline. Overall, there will be a division error if one of the
operands is negative and the division would have a non-zero remainder.

-- 
Configure bugmail: http://legup.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Legup-bugs mailing list