here it is. I tested this patch with master.

Carl

2016-02-23 14:40 GMT+01:00 JonY <[email protected]>:

> On 2/23/2016 17:40, Carl Kleffner wrote:
> > I would like to add a patch for math/fpclassify.c:
> >
> > --- mingw-w64/mingw-w64-crt/math/fpclassify.c    2015-06-05
> > 10:13:07.997781400 +0200
> > +++ mingw-w64/mingw-w64-crt/math/fpclassify.c    mingwpy working copy
> > @@ -17,7 +17,6 @@ and sets C1 flag (signbit) if neg */
> >
> >  int __fpclassify (double _x)
> >  {
> > -#if defined(__x86_64__) || defined(_AMD64_) || defined(__arm__) ||
> > defined(_ARM_)
> >      __mingw_dbl_type_t hlp;
> >      unsigned int l, h;
> >
> > @@ -32,13 +31,4 @@ int __fpclassify (double _x)
> >      if (h == 0x7ff00000)
> >        return (l ? FP_NAN : FP_INFINITE);
> >      return FP_NORMAL;
> > -#elif defined(__i386__) || defined(_X86_)
> > -  unsigned short sw;
> > -  __asm__ __volatile__ (
> > -    "fxam; fstsw %%ax;"
> > -    : "=a" (sw)
> > -    : "t" (_x)
> > -    );
> > -  return sw & (FP_NAN | FP_NORMAL | FP_ZERO);
> > -#endif
> >  }
> >
> > Due to the bug https://sourceforge.net/p/mingw-w64/bugs/367
>  __fpclassify
> > (double _x) never worked for doubles on 32 bit (__i386__  _X86_). It does
> > work using the 64 bit path in the if clause at least for me. So this
> patch
> > simply removes the differentiation between 32 bit and 64 bit.
> >
>
> Can you resend using git send-email or as in attachment? Looks like your
> client wrapped the lines. Is this only for master?
>
> Thanks.
>
>
>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
>

Attachment: fpclassify.patch
Description: Binary data

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to