Skip to content

Commit f26954b

Browse files
committed
PPC EABI: Update cmath header with atan
1 parent f155c4f commit f26954b

File tree

1 file changed

+6
-0
lines changed
  • src/PowerPC_EABI_Support/include/PowerPC_EABI_Support/MSL_C/MSL_Common

1 file changed

+6
-0
lines changed

src/PowerPC_EABI_Support/include/PowerPC_EABI_Support/MSL_C/MSL_Common/cmath

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ namespace std
99

1010
#ifndef INLINE
1111
float atan2f(float y, float x);
12+
float atan(float x);
1213
float sinf(float x);
1314
float cosf(float x);
1415
float tanf(float x);
@@ -25,6 +26,11 @@ namespace std
2526
return (float)atan2((double)y, (double)x);
2627
}
2728

29+
inline float atan(float x)
30+
{
31+
return (float)atan((double)x);
32+
}
33+
2834
inline float sinf(float x)
2935
{
3036
return (float)sin((double)x);

0 commit comments

Comments
 (0)