|
From: | Bruno Haible |
Subject: | new modules setpayloadsig, setpayloadsigf, setpayloadsigl |
Date: | Wed, 17 Apr 2024 00:49:51 +0200 |
ISO C 23 specifies in the (optional, but normative) Annex F also functions for creating signalling NaNs with a given payload. Here is a patch series that implements them. 2024-04-16 Bruno Haible <bruno@clisp.org> setpayloadsigl: Add tests. * tests/test-setpayloadsigl.c: New file, based on tests/test-setpayloadl.c. * modules/setpayloadsigl-tests: New file. setpayloadsigl: New module. * lib/math.in.h (setpayloadsigl): New declaration. * lib/setpayloadsigl.c: New file, based on lib/setpayloadl.c. * m4/math_h.m4 (gl_MATH_H): Test whether setpayloadsigl is declared. (gl_MATH_H_REQUIRE_DEFAULTS): Initialize GNULIB_SETPAYLOADSIGL. (gl_MATH_H_DEFAULTS): Initialize HAVE_SETPAYLOADSIGL. * modules/math (Makefile.am): Substitute GNULIB_SETPAYLOADSIGL, HAVE_SETPAYLOADSIGL. * modules/setpayloadsigl: New file. * doc/posix-functions/setpayloadsigl.texi: Mention the new module. 2024-04-16 Bruno Haible <bruno@clisp.org> setpayloadsigf: Add tests. * tests/test-setpayloadf.c (PAYLOAD_BITS): New macro. (main): Use it. * tests/test-setpayloadsigf.c: New file, based on tests/test-setpayloadf.c. * modules/setpayloadsigf-tests: New file. setpayloadsigf: New module. * lib/math.in.h (setpayloadsigf): New declaration. * lib/setpayloadsigf.c: New file, based on lib/setpayloadf.c. * m4/math_h.m4 (gl_MATH_H): Test whether setpayloadsigf is declared. (gl_MATH_H_REQUIRE_DEFAULTS): Initialize GNULIB_SETPAYLOADSIGF. (gl_MATH_H_DEFAULTS): Initialize HAVE_SETPAYLOADSIGF. * modules/math (Makefile.am): Substitute GNULIB_SETPAYLOADSIGF, HAVE_SETPAYLOADSIGF. * modules/setpayloadsigf: New file. * doc/posix-functions/setpayloadsigf.texi: Mention the new module. 2024-04-16 Bruno Haible <bruno@clisp.org> setpayloadsig: Add tests. * tests/test-setpayload.c (PAYLOAD_BITS): New macro. (main): Use it. * tests/test-setpayloadsig.c: New file, based on tests/test-setpayload.c. * modules/setpayloadsig-tests: New file. setpayloadsig: New module. * lib/math.in.h (setpayloadsig): New declaration. * lib/setpayloadsig.c: New file, based on lib/setpayload.c. * m4/setpayloadsig.m4: New file, based on m4/setpayload.m4. * m4/math_h.m4 (gl_MATH_H): Test whether setpayloadsig is declared. (gl_MATH_H_REQUIRE_DEFAULTS): Initialize GNULIB_SETPAYLOADSIG. (gl_MATH_H_DEFAULTS): Initialize HAVE_SETPAYLOADSIG. * modules/math (Makefile.am): Substitute GNULIB_SETPAYLOADSIG, HAVE_SETPAYLOADSIG. * modules/setpayloadsig: New file. * doc/posix-functions/setpayloadsig.texi: Mention the new module.
0001-setpayloadsig-New-module.patch
Description: Text Data
0002-setpayloadsig-Add-tests.patch
Description: Text Data
0003-setpayloadsigf-New-module.patch
Description: Text Data
0004-setpayloadsigf-Add-tests.patch
Description: Text Data
0005-setpayloadsigl-New-module.patch
Description: Text Data
0006-setpayloadsigl-Add-tests.patch
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |