[PATCH] Fix remainder calculating bug in single floating point division

Kumar Gala galak at kernel.crashing.org
Tue Jan 8 17:22:25 EST 2008


On Jan 6, 2008, at 8:26 AM, Liu Yu wrote:

> This bug exists in the emulation of floating point division for  
> powerpc.
>
> The original code cannot count the remainder correctly.
> I can provide a test case to trigger this bug.
> When use fdiv to count 1.1754941e-38f / 0.9999999f,
> the result is expected to be 1.175494e-38f,
> but we will get 1.174921e-38f in the original case.
>
> Comments are always welcomed!

can you provide the test case that shows the error.

- k




More information about the Linuxppc-dev mailing list