Re: [Numpy-discussion] Problems testing the floating point flags

2010-11-15 Thread Charles R Harris
On Sun, Nov 14, 2010 at 1:29 PM, Mark Wiebe wrote: > On Sun, Nov 14, 2010 at 12:21 PM, Charles R Harris < > charlesr.har...@gmail.com> wrote: > >> Good point. I was trying to keep the fpeclear in front of the code to be >> tested. >> >> > Yeah, I hadn't considered that possibility too seriously.

Re: [Numpy-discussion] Problems testing the floating point flags

2010-11-14 Thread Mark Wiebe
On Sun, Nov 14, 2010 at 12:21 PM, Charles R Harris < charlesr.har...@gmail.com> wrote: > Good point. I was trying to keep the fpeclear in front of the code to be > tested. > > Yeah, I hadn't considered that possibility too seriously. Hopefully as long as the compiler doesn't see a reason to reord

Re: [Numpy-discussion] Problems testing the floating point flags

2010-11-14 Thread Charles R Harris
On Sun, Nov 14, 2010 at 1:09 PM, Mark Wiebe wrote: > > > On Sun, Nov 14, 2010 at 7:07 AM, Charles R Harris < > charlesr.har...@gmail.com> wrote: > >> >> Another possible solution is like so: >> >> static __attribute__ ((noinline)) int >> fpecheck(int *status) >> { >> *status = PyUFunc_getfper

Re: [Numpy-discussion] Problems testing the floating point flags

2010-11-14 Thread Mark Wiebe
On Sun, Nov 14, 2010 at 7:07 AM, Charles R Harris wrote: > > Another possible solution is like so: > > static __attribute__ ((noinline)) int > fpecheck(int *status) > { > *status = PyUFunc_getfperr(); > return 0; > } > > static __attribute__ ((noinline)) int > fpeclear(int *status) > { >

Re: [Numpy-discussion] Problems testing the floating point flags

2010-11-14 Thread Mark Wiebe
On Sat, Nov 13, 2010 at 6:41 PM, Charles R Harris wrote: > Hi All, > > This is in reference to numpy ticket > #1671and the comments on pull > request 13 . The original problem > was that the gcc compiler was reo

Re: [Numpy-discussion] Problems testing the floating point flags

2010-11-14 Thread Charles R Harris
On Sat, Nov 13, 2010 at 7:41 PM, Charles R Harris wrote: > Hi All, > > This is in reference to numpy ticket > #1671and the comments on pull > request 13 . The original problem > was that the gcc compiler was reo

[Numpy-discussion] Problems testing the floating point flags

2010-11-13 Thread Charles R Harris
Hi All, This is in reference to numpy ticket #1671and the comments on pull request 13 . The original problem was that the gcc compiler was reordering the instructions so that the floating point flags were tested b