]> git.ipfire.org Git - thirdparty/gnulib.git/commit
totalorder, totalorderf: Fix handling of SNaN on i386 and x86_64 CPUs.
authorBruno Haible <bruno@clisp.org>
Tue, 9 Apr 2024 11:08:32 +0000 (13:08 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 9 Apr 2024 11:35:58 +0000 (13:35 +0200)
commit23feacb6ec0800a7d79c76105e3715e127ac2347
tree8da8697c219198bff068746ec070f07d6040b579
parent0960bc29365b8dffbf4f8dc10d29c3fa1fb47b58
totalorder, totalorderf: Fix handling of SNaN on i386 and x86_64 CPUs.

* lib/totalorder.c: Include <string.h>.
(totalorder): Use memcpy to copy the 'double' values into the union.
Drop 'volatile'.
* lib/totalorderf.c: Include <string.h>.
(totalorderf): Use memcpy to copy the 'float' values into the union.
Drop 'volatile'.
ChangeLog
lib/totalorder.c
lib/totalorderf.c