Re: new module 'fenv-rounding'

2023-11-04 Thread Bruno Haible
On NetBSD 8.0/sparc64, I see a test failure of the fenv-rounding test for 'long double' operations. On this platform, 'long double' operations are implemented by a software floating-point library. Apparently this library code ignores the rounding direction. This patch avoids the test failure and d

Re: new module 'fenv-rounding'

2023-11-04 Thread Bruno Haible
> * m4/fenv-rounding.m4: New file. Oops, there was a mistake here, and in other places as well: Everywhere where an Autoconf macro uses $host, $host_os, or $host_cpu, it needs to first require AC_CANONICAL_HOST. Otherwise the value of such a variable may come out as empty. 2023-11-04 Brun

new module 'fenv-rounding'

2023-10-27 Thread Bruno Haible
These patches add a module 'fenv-rounding', that implements the ISO C 99 functions fegetround fesetround Most platforms have these functions nowadays, and the unit tests have not uncovered any bugs. Therefore it's probably only relevant for portability to older Android versions. The most inte