bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

new module 'fenv-exceptions-trapping'


From: Bruno Haible
Subject: new module 'fenv-exceptions-trapping'
Date: Tue, 31 Oct 2023 22:00:05 +0100

These patches add a module 'fenv-exceptions-trapping', that portably implement
the GNU functions
  feenableexcept
  fedisableexcept
  fegetexcept   (a terrible misnomer, btw)

Again, the unit tests uncovered several problems on several platforms.


2023-10-31  Bruno Haible  <bruno@clisp.org>

        fenv-exceptions-trapping: Add tests.
        * tests/test-fenv-except-trapping-1.c: New file.
        * tests/test-fenv-except-trapping-2.sh: New file.
        * tests/test-fenv-except-trapping-2.c: New file.
        * modules/fenv-exceptions-trapping-tests: New file.

        fenv-exceptions-trapping: New module.
        * lib/fenv.in.h (feenableexcept, fedisableexcept, fegetexcept): New
        declarations.
        * lib/fenv-except-trapping.c: New file, based on glibc.
        * m4/fenv_h.m4 (gl_FENV_H): Test also whether fegetexcept is declared.
        * m4/fenv-exceptions-trapping.m4: New file.
        * modules/fenv-exceptions-trapping: New file.
        * doc/glibc-functions/fegetexcept.texi: Mention the new module.
        * doc/glibc-functions/fedisableexcept.texi: Likewise.
        * doc/glibc-functions/feenableexcept.texi: Likewise. Mention the glibc,
        macOS, FreeBSD bugs.

Attachment: 0001-fenv-exceptions-trapping-New-module.patch
Description: Text Data

Attachment: 0002-fenv-exceptions-trapping-Add-tests.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]