[PATCH] fix masking error in fesetround() on hppa

Carlos O'Donell carlos@baldric.uwo.ca
Mon Dec 2 19:24:00 GMT 2002


> I've put that fix in.  I'm not quite sure what you are suggesting for a new
> test, but test cases that fail on known bug regressions (i.e. one that
> fails before your fix and works after it) are always welcome.

I was thinking about adding a test to exercises fesetround()/fegetround().
This would involve expanding math/test-fenv.c a little. Currently it
only checks to see if the intial rounding mode is FE_TONEAREST, but
doesn't include any checks for seting and geting. A test like this would
have revealed the bug in our fesetround implementation.

c.



More information about the Libc-alpha mailing list