Skip to content

Commit d833a53

Browse files
igrrantmak
authored andcommitted
math: enable __ieee754_remainder[f], __ieee754_fmod[f] for Xtensa
1 parent 7844767 commit d833a53

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

newlib/libm/math/e_fmod.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/* __ieee754_remainder is provided by libgcc and presumably is faster
1919
then original implementation */
2020

21-
#if 1
21+
#ifndef __XTENSA__
2222

2323
extern double __ieee754_remainder(double x, double y);
2424

newlib/libm/math/e_remainder.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
/* __ieee754_remainder is provided by libgcc */
2828

29-
#if 0
29+
#ifdef __XTENSA__
3030

3131
#ifdef __STDC__
3232
static const double zero = 0.0;
@@ -81,6 +81,6 @@ static double zero = 0.0;
8181
return x;
8282
}
8383

84-
#endif
84+
#endif /* __XTENSA__ */
8585

8686
#endif /* defined(_DOUBLE_IS_32BITS) */

newlib/libm/math/ef_fmod.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/* __ieee754_remainderf is provided by libgcc and presumably is faster
1919
then original implementation */
2020

21-
#if 0
21+
#ifndef __XTENSA__
2222

2323
extern float __ieee754_remainderf(float x, float y);
2424

newlib/libm/math/ef_remainder.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
/* __ieee754_remainderf is provided by libgcc */
1919

20-
#if 0
20+
#ifdef __XTENSA__
2121

2222
#ifdef __STDC__
2323
static const float zero = 0.0;
@@ -71,4 +71,4 @@ static float zero = 0.0;
7171
return x;
7272
}
7373

74-
#endif /* 0 */
74+
#endif /* __XTENSA__ */

0 commit comments

Comments
 (0)