Re: problems with libm

2019-07-11 Thread Moritz Buhl
Hi, I made the FreeBSD msun regression tests compile on OpenBSD. https://github.com/moritzbuhl/msun-regress 3 out of 19 test files pass. 14 files die after the first error case. Two files (ctrig_test.c and trig_test.c) use atf and after some hacks they report all error cases. 840 for ctrig_test

Re: problems with libm

2019-07-11 Thread Ingo Feinerer
Moritz Buhl wrote: > ... I noticed that some floating point operations cause failures of other > tests. > ... > Many edge cases for complex floating point operations are not covered at all. Hi, https://marc.info/?l=openbsd-tech=150737856618497=2 is another example of an edge case for complex

Re: problems with libm

2019-07-09 Thread Theo de Raadt
Daniel Dickman wrote: > > msun library? Ignore the problem? Patch the current implementation? > > Patches to correct the current code would be very welcome. (In my case > especially if it improves numpy test results). Agree. Don't replace the code. Replacements are likely to contain other

Re: problems with libm

2019-07-09 Thread Daniel Dickman
> On Jul 1, 2019, at 2:50 AM, Moritz Buhl wrote: > > Hi, > > while testing arm hardware on OpenBSD I noticed that some floating point > operations cause failures of other tests. > In fact the current libm is incorrect according to the ISO C Std Annex > G. I found this out after porting some