bug-gnulib
[Top][All Lists]
Advanced

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

new modules totalordermag, totalordermagf, totalordermagl


From: Bruno Haible
Subject: new modules totalordermag, totalordermagf, totalordermagl
Date: Fri, 19 Apr 2024 02:28:54 +0200

The ISO C 23 annex F also specifies functions for ordering numbers
according to their absolute value:
  totalordermag
  totalordermagf
  totalordermagl

So far, only glibc has these functions. This patch series implements them in
Gnulib.


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

        totalordermagl: Add tests.
        * tests/test-totalordermagl.c: New file, based on
        tests/test-totalorderl.c.
        * modules/totalordermagl-tests: New file, based on
        modules/totalorderl-tests.

        totalordermagl: New module.
        * lib/math.in.h (totalordermagl): New declaration.
        * lib/totalordermagl.c: New file, based on lib/totalorderl.c.
        * m4/math_h.m4 (gl_MATH_H): Test whether totalordermagl is declared.
        (gl_MATH_H_REQUIRE_DEFAULTS): Initialize GNULIB_TOTALORDERMAGL.
        (gl_MATH_H_DEFAULTS): Initialize HAVE_TOTALORDERMAGL,
        REPLACE_TOTALORDERMAGL.
        * modules/math (Makefile.am): Substitute GNULIB_TOTALORDERMAGL,
        HAVE_TOTALORDERMAGL, REPLACE_TOTALORDERMAGL.
        * modules/totalordermagl: New file, based on modules/totalorderl.
        * doc/posix-functions/totalordermagl.texi: Mention the new module.

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

        totalordermagf: Add tests.
        * tests/test-totalordermagf.c: New file, based on
        tests/test-totalorderf.c.
        * modules/totalordermagf-tests: New file, based on
        modules/totalorderf-tests.

        totalordermagf: New module.
        * lib/math.in.h (totalordermagf): New declaration.
        * lib/totalordermagf.c: New file, based on lib/totalorderf.c.
        * m4/math_h.m4 (gl_MATH_H): Test whether totalordermagf is declared.
        (gl_MATH_H_REQUIRE_DEFAULTS): Initialize GNULIB_TOTALORDERMAGF.
        (gl_MATH_H_DEFAULTS): Initialize HAVE_TOTALORDERMAGF,
        REPLACE_TOTALORDERMAGF.
        * modules/math (Makefile.am): Substitute GNULIB_TOTALORDERMAGF,
        HAVE_TOTALORDERMAGF, REPLACE_TOTALORDERMAGF.
        * modules/totalordermagf: New file, based on modules/totalorderf.
        * doc/posix-functions/totalordermagf.texi: Mention the new module.

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

        totalordermag: Add tests.
        * tests/test-totalordermag.c: New file, based on
        tests/test-totalorder.c.
        * tests/test-totalordermag.h: New file, based on
        tests/test-totalorder.h.
        * modules/totalordermag-tests: New file, based on
        modules/totalorder-tests.

        totalordermag: New module.
        * lib/math.in.h (totalordermag): New declaration.
        * lib/totalordermag.c: New file, based on lib/totalorder.c.
        * m4/totalordermag.m4: New file, based on m4/totalorder.m4.
        * m4/math_h.m4 (gl_MATH_H): Test whether totalordermag is declared.
        (gl_MATH_H_REQUIRE_DEFAULTS): Initialize GNULIB_TOTALORDERMAG.
        (gl_MATH_H_DEFAULTS): Initialize HAVE_TOTALORDERMAG,
        REPLACE_TOTALORDERMAG.
        * modules/math (Makefile.am): Substitute GNULIB_TOTALORDERMAG,
        HAVE_TOTALORDERMAG, REPLACE_TOTALORDERMAG.
        * modules/totalordermag: New file, based on modules/totalorder.
        * doc/posix-functions/totalordermag.texi: Mention the new module.

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

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

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

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

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

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


reply via email to

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