Skip to content

Commit 7ac449e

Browse files
committed
3rdParty MSL: Match math_ppc.c (but can't link yet)
1 parent 5391797 commit 7ac449e

File tree

1 file changed

+6
-18
lines changed
  • src/3rdParty/PowerPC_EABI_Support/MSL/MSL_C/PPC_EABI/Src

1 file changed

+6
-18
lines changed
Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
#include "math_ppc.h"
22
#include "fdlibm.h"
33

4-
/* 8036CA30-8036CA54 367370 0024+00 0/0 1/1 0/0 .text acosf */
5-
__declspec(weak) float acosf(float x) {
6-
return acos(x);
4+
__declspec(weak) double fabs(double f) {
5+
return __fabs(f);
6+
}
7+
8+
__declspec(weak) float powf(float f, float f2) {
9+
return pow(f, f2);
710
}
811

912
/* 8036CA0C-8036CA30 36734C 0024+00 0/0 4/4 0/0 .text cosf */
@@ -15,18 +18,3 @@ __declspec(weak) float cosf(float x) {
1518
__declspec(weak) float sinf(float x) {
1619
return sin(x);
1720
}
18-
19-
/* 8036C9C4-8036C9E8 367304 0024+00 0/0 2/2 0/0 .text tanf */
20-
__declspec(weak) float tanf(float x) {
21-
return tan(x);
22-
}
23-
extern float __fabsf(float);
24-
__declspec(weak) inline double fabs(double f) {
25-
return __fabs(f);
26-
}
27-
__declspec(weak) inline double fabsf2(float f) {
28-
return __fabsf(f);
29-
}
30-
__declspec(weak) inline float fabsf(float f) {
31-
return fabsf2(f);
32-
}

0 commit comments

Comments
 (0)