-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SPE fixes. Some other fixes for gcc6
- Loading branch information
Showing
11 changed files
with
42 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,35 @@ | ||
/* | ||
* $Id: math_fabs.c,v 1.9 2021-01-31 12:04:23 clib2devs Exp $ | ||
* $Id: math_fabs.c,v 1.10 2023-07-13 12:04:23 clib2devs Exp $ | ||
*/ | ||
|
||
#ifndef _MATH_HEADERS_H | ||
#include "math_headers.h" | ||
#endif /* _MATH_HEADERS_H */ | ||
|
||
INLINE STATIC double | ||
__fabs(double x) | ||
{ | ||
double res; | ||
inline static double | ||
__fabs(double x) { | ||
#ifndef _SOFT_FLOAT | ||
double res; | ||
|
||
__asm volatile("fabs %0, %1" | ||
: "=f"(res) | ||
: "f"(x)); | ||
__asm volatile("fabs %0, %1" | ||
: "=f"(res) | ||
: "f"(x)); | ||
|
||
return res; | ||
return res; | ||
#else | ||
uint32_t high; | ||
GET_HIGH_WORD(high, x); | ||
SET_HIGH_WORD(x, high & 0x7fffffff); | ||
|
||
return x; | ||
#endif | ||
} | ||
|
||
double | ||
fabs(double x) | ||
{ | ||
double result; | ||
fabs(double x) { | ||
double result; | ||
|
||
result = __fabs(x); | ||
result = __fabs(x); | ||
|
||
return (result); | ||
return (result); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters