]> Savannah Git Hosting - 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>
Fri, 19 Apr 2024 12:41:26 +0000 (14:41 +0200)
commit2cb393d0ac962efe0407c31d466b16f7b0c0c669
tree9248ae657fece17eecf4cee65530beaca620af4e
parentbf86236c7da434022b84c45cd073f0cae00190c1
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