bug-gnulib
[Top][All Lists]
Advanced

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

new module 'fenv-exceptions-state-c99'


From: Bruno Haible
Subject: new module 'fenv-exceptions-state-c99'
Date: Mon, 30 Oct 2023 16:48:47 +0100

This new module implements the ISO C 99 functions for saving and restoring the
floating-point exception flags.

The unit tests uncovered bugs in glibc, musl libc (*), macOS, AIX, mingw.

(*) The one on musl libc is a documented limitation.


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

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

        fenv-exceptions-state-c99: New module.
        * lib/fenv.in.h (fegetexceptflag, fesetexceptflag): New declarations.
        * lib/fenv-except-state-get.c: New file, baed on glibc.
        * lib/fenv-except-state-set.c: New file, baed on glibc.
        * m4/mathfunc.m4 (gl_MATHFUNC): Handle also the 'fexcept_t *' type.
        * m4/fenv-exceptions-state.m4: New file.
        * modules/fenv-exceptions-state-c99: New file.
        * doc/posix-functions/fegetexceptflag.texi: Mention the new module.
        * doc/posix-functions/fesetexceptflag.texi: Mention the new module and
        the glibc, musl libc, macOS, AIX, mingw bugs.

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

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


reply via email to

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