bug-gnulib
[Top][All Lists]
Advanced

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

new modules setpayload, setpayloadf, setpayloadl


From: Bruno Haible
Subject: new modules setpayload, setpayloadf, setpayloadl
Date: Tue, 16 Apr 2024 16:49:41 +0200

ISO C 23 specifies in the (optional, but normative) Annex F functions
for creating NaNs with payload.

glibc has these functions already since 2017. But portable programs
cannot use them, if Gnulib does not implement them as well.

Therefore, this set of patches implements them.


2024-04-16  Bruno Haible  <bruno@clisp.org>

        setpayloadl: Add tests.
        * tests/test-setpayloadl.c: New file.
        * modules/setpayloadl-tests: New file.

        setpayloadl: New module.
        * lib/math.in.h (setpayloadl): New declaration.
        * lib/setpayloadl.c: New file.
        * m4/math_h.m4 (gl_MATH_H): Test whether setpayloadl is declared.
        (gl_MATH_H_REQUIRE_DEFAULTS): Initialize GNULIB_SETPAYLOADL.
        (gl_MATH_H_DEFAULTS): Initialize HAVE_SETPAYLOADL.
        * modules/math (Makefile.am): Substitute GNULIB_SETPAYLOADL,
        HAVE_SETPAYLOADL.
        * modules/setpayloadl: New file.
        * doc/posix-functions/setpayloadl.texi: Mention the new module.

2024-04-16  Bruno Haible  <bruno@clisp.org>

        setpayloadf: Add tests.
        * tests/test-setpayloadf.c: New file.
        * modules/setpayloadf-tests: New file.

        setpayloadf: New module.
        * lib/math.in.h (setpayloadf): New declaration.
        * lib/setpayloadf.c: New file.
        * m4/math_h.m4 (gl_MATH_H): Test whether setpayloadf is declared.
        (gl_MATH_H_REQUIRE_DEFAULTS): Initialize GNULIB_SETPAYLOADF.
        (gl_MATH_H_DEFAULTS): Initialize HAVE_SETPAYLOADF.
        * modules/math (Makefile.am): Substitute GNULIB_SETPAYLOADF,
        HAVE_SETPAYLOADF.
        * modules/setpayloadf: New file.
        * doc/posix-functions/setpayloadf.texi: Mention the new module.

2024-04-16  Bruno Haible  <bruno@clisp.org>

        setpayload: Add tests.
        * tests/test-setpayload.c: New file.
        * modules/setpayload-tests: New file.

        setpayload: New module.
        * lib/math.in.h (setpayload): New declaration.
        * lib/setpayload.c: New file.
        * m4/setpayload.m4: New file.
        * m4/math_h.m4 (gl_MATH_H): Test whether setpayload is declared.
        (gl_MATH_H_REQUIRE_DEFAULTS): Initialize GNULIB_SETPAYLOAD.
        (gl_MATH_H_DEFAULTS): Initialize HAVE_SETPAYLOAD.
        * modules/math (Makefile.am): Substitute GNULIB_SETPAYLOAD,
        HAVE_SETPAYLOAD.
        * modules/setpayload: New file.
        * doc/posix-functions/setpayload.texi: Mention the new module.

Attachment: 0001-setpayload-New-module.patch
Description: Text Data

Attachment: 0002-setpayload-Add-tests.patch
Description: Text Data

Attachment: 0003-setpayloadf-New-module.patch
Description: Text Data

Attachment: 0004-setpayloadf-Add-tests.patch
Description: Text Data

Attachment: 0005-setpayloadl-New-module.patch
Description: Text Data

Attachment: 0006-setpayloadl-Add-tests.patch
Description: Text Data


reply via email to

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