> And I don't know if it is broken for all mips, loongson2f is different
> from the other mips, or what.
>
> Anyone knows more details? I'll keep investigating a bit more.
It might be implemented so. I would ask the designers.
>
> Here is the C++ code I used. Change it at will to test:
> ----------------
> #include <limits>
> #include <math.h>
> #include <iostream>
>
> double madd(double a, double b, double c)
> {
>   return a*b+c;
> }
>
> int main()
> {
>   double z = 0;
>   double f = std::numeric_limits<double>::quiet_NaN();
>
>   double g = madd(z, 1, 1);
>
>   std::cout << "primer: " << g << std::endl;
>
>   f = std::numeric_limits<double>::signaling_NaN();
>
>   g = madd(z, f, f);
>
>   std::cout << "segon: " << g << std::endl;
>
>   return 0;
> }
> ----------------
>
>
> Regards,
> Llu韘.
>
> --
> You received this message because you are subscribed to the Google Groups
> "loongson-dev" group.
> To post to this group, send email to loongson-dev@googlegroups.com.
> To unsubscribe from this group, send email to
> loongson-dev+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/loongson-dev?hl=en.
>
>


-- 
You received this message because you are subscribed to the Google Groups 
"loongson-dev" group.
To post to this group, send email to loongson-dev@googlegroups.com.
To unsubscribe from this group, send email to 
loongson-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/loongson-dev?hl=en.

Reply via email to