]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix fabs(3) for powerpcspe, this time for real
authorJustin Hibbits <jhibbits@FreeBSD.org>
Thu, 26 Jul 2018 14:42:20 +0000 (14:42 +0000)
committerJustin Hibbits <jhibbits@FreeBSD.org>
Thu, 26 Jul 2018 14:42:20 +0000 (14:42 +0000)
commit28c20ad06c3f0328eb0d86b03da40b8ea970baee
tree3587dd94df609f3a5ae5b76d07357fb2d677c6a1
parent7ddf05ed5b891464c6a91a437e97a7e25bfd704b
Fix fabs(3) for powerpcspe, this time for real

SPE ABI uses the soft-float ABI, which splits doubles into two words.  As such,
fabs(3) cannot work on a double directly.  It's too costly to convert the
argument pair into a single double to use efdabs, so clear the top bit of the
high word, which is the sign bit.
lib/libc/powerpcspe/gen/fabs.S