]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
msun: swap words order instead of bits order on BIG ENDIAN
authorAlfredo Dal'Ava Junior <alfredo@FreeBSD.org>
Thu, 26 Mar 2020 18:50:54 +0000 (18:50 +0000)
committerAlfredo Dal'Ava Junior <alfredo@FreeBSD.org>
Thu, 26 Mar 2020 18:50:54 +0000 (18:50 +0000)
commitf1343c7f6721b6a6de43813b57aa5e09cb4fd5f5
treec8b91e97667657766898b078281a79094ce2ebff
parent68fbe6f0b3e8eff10667f63dae166f3c50e1f59a
msun: swap words order instead of bits order on BIG ENDIAN

The "for" loop on big endian was inverting all the bits instead of
just the words

Issue reported by TestSuite (msun lib nan_test case)

Submitted by: Renato Riolino <renato.riolino@eldorado.org.br>
Submitted by: Fernando Valle <fernando.valle@eldorado.org.br>
Reviewed by: pfg, alfredo
Approved by: jhibbits (mentor)
Sponsored by: Eldorado Research Institute (eldorado.org.br)
Differential Revision: https://reviews.freebsd.org/D23926
lib/msun/src/s_nan.c