]> Savannah Git Hosting - gnulib.git/commit
signed-nan: Don't assume that '-' works as expected on NaN values.
authorBruno Haible <bruno@clisp.org>
Fri, 19 Apr 2024 11:57:14 +0000 (13:57 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 19 Apr 2024 11:57:14 +0000 (13:57 +0200)
commit6761c11214cb22868cbb2edd511bff5d6012fe3c
treecca6cf52c9f3641e42404ba72a5e08a3ae247835
parent229e2648deca809c84cc1c139092547105a07fde
signed-nan: Don't assume that '-' works as expected on NaN values.

* lib/signed-nan.h (minus_NaNf): New function.
(positive_NaNf, negative_NaNf): Use it.
(minus_NaNd): New function.
(positive_NaNd, negative_NaNd): Use it.
(minus_NaNl): New function.
(positive_NaNl, negative_NaNl): Use it.
* tests/test-totalorder.c (TOTALORDER_MINUS): New macro.
* tests/test-totalorderf.c (TOTALORDER_MINUS): New macro.
* tests/test-totalorderl.c (TOTALORDER_MINUS): New macro.
* tests/test-totalorder.h (negative_NaN_with_payload): Use it.
* tests/test-totalordermag.c (TOTALORDER_MINUS): New macro.
* tests/test-totalordermagf.c (TOTALORDER_MINUS): New macro.
* tests/test-totalordermagl.c (TOTALORDER_MINUS): New macro.
* tests/test-totalordermag.h (negative_NaN_with_payload): Use it.
ChangeLog
lib/signed-nan.h
tests/test-totalorder.c
tests/test-totalorder.h
tests/test-totalorderf.c
tests/test-totalorderl.c
tests/test-totalordermag.c
tests/test-totalordermag.h
tests/test-totalordermagf.c
tests/test-totalordermagl.c