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.
This commit is contained in:
parent
7ddf05ed5b
commit
28c20ad06c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=336739
@ -31,7 +31,8 @@ __FBSDID("$FreeBSD$");
|
||||
* double fabs(double)
|
||||
*/
|
||||
ENTRY(fabs)
|
||||
efdabs %r3,%r3
|
||||
/* arg is split in two words, clear sign bit only, in r3. */
|
||||
clrlwi %r3,%r3,1
|
||||
blr
|
||||
END(fabs)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user