On Tue, Sep 7, 2010 at 4:28 AM, James Cloos <cl...@jhcloos.com> wrote:
>>>>>> "MB" == Miles Bader <mi...@gnu.org> writes:
>
> MB> The compiler generates the following assembly:
>
> MB>     mov     %esi, %eax
> MB>     mov     %edi, %edi
> MB>     imulq   %rdi, %rax
> MB>     addq    $32768, %rax
> MB>     shrq    $16, %rax
>
> That does not match the C code though; it rounds negative values wrong.
>
> The C version does away-from-zero rounding.

Do you have test cases that show this?  I tried using random inputs,
but even up to billions of iterations, I can't seem to find a set of
inputs where my function yields different results from yours.

Thanks,

-Miles


-- 
Cat is power.  Cat is peace.

_______________________________________________
Freetype-devel mailing list
Freetype-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to