Skip to content

Commit cac662c

Browse files
committed
removed the _debug_funcl macro aliases as long double routine linking has been fixed
1 parent b5e7c2a commit cac662c

File tree

11 files changed

+3
-150
lines changed

11 files changed

+3
-150
lines changed

src/libc/ceill.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
#include <math.h>
22

3-
#ifdef ceill
4-
#undef ceill
5-
#endif
6-
73
long double ceill(long double x) {
84
if (signbit(x)) {
95
return truncl(x);
@@ -17,5 +13,3 @@ long double ceill(long double x) {
1713
}
1814
return x;
1915
}
20-
21-
long double _debug_ceill(long double) __attribute__((alias("ceill")));

src/libc/copysignl.src

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
section .text
44

5-
public _copysignl, __debug_copysignl
6-
7-
__debug_copysignl:
5+
public _copysignl
86
_copysignl:
97
ld hl, 19 ; upper 8 bits of y
108
add hl, sp

src/libc/fabsl.src

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22

33
section .text
44

5-
public _fabsl, __debug_fabsl
5+
public _fabsl
66

7-
__debug_fabsl:
87
_fabsl:
98
pop iy, hl ,de, bc
109
push bc, de, hl

src/libc/float64_rounding.c

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ long double roundevenl(long double x) {
4747
return ret.flt;
4848
}
4949

50-
#ifdef roundl
51-
#undef roundl
52-
#endif
53-
5450
long double roundl(long double x) {
5551
F64_pun arg_x, ret;
5652
arg_x.flt = x;
@@ -93,21 +89,13 @@ long long llroundl(long double x) {
9389
}
9490
#endif
9591

96-
#ifdef nearbyintl
97-
#undef nearbyintl
98-
#endif
99-
10092
long double nearbyintl(long double x) {
10193
F64_pun arg_x, ret;
10294
arg_x.flt = x;
10395
ret.soft = f64_roundToInt(arg_x.soft, GET_FENV_SOFTFLOAT_ROUNDING(), false);
10496
return ret.flt;
10597
}
10698

107-
#ifdef rintl
108-
#undef rintl
109-
#endif
110-
11199
/* flags handled by softfloat */
112100
long double rintl(long double x) {
113101
F64_pun arg_x, ret;
@@ -129,8 +117,3 @@ long long llrintl(long double x) {
129117
arg_x.flt = x;
130118
return f64_to_i64(arg_x.soft, GET_FENV_SOFTFLOAT_ROUNDING(), true);
131119
}
132-
133-
long double _debug_roundl(long double) __attribute__((alias("roundl")));
134-
long double _debug_rintl(long double) __attribute__((alias("rintl")));
135-
long double _debug_nearbyintl(long double) __attribute__((alias("nearbyintl")));
136-

src/libc/floorl.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
#include <math.h>
22

3-
#ifdef floorl
4-
#undef floorl
5-
#endif
6-
73
long double floorl(long double x) {
84
if (!signbit(x)) {
95
return truncl(x);
@@ -17,5 +13,3 @@ long double floorl(long double x) {
1713
}
1814
return x;
1915
}
20-
21-
long double _debug_floorl(long double) __attribute__((alias("floorl")));

src/libc/fmal.src

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22

33
section .text
44

5-
public _fmal, __debug_fmal
5+
public _fmal
66

77
_fmal:
8-
__debug_fmal:
98
; flags handled by softfloat
109
ld iy, 0
1110
add iy, sp

src/libc/fmax.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ float fmaxf(float x, float y) {
1313

1414
double fmax(double, double) __attribute__((alias("fmaxf")));
1515

16-
#ifdef fmaxl
17-
#undef fmaxl
18-
#endif
19-
2016
long double fmaxl(long double x, long double y) {
2117
return
2218
isless(x, y) ? y :
@@ -27,5 +23,3 @@ long double fmaxl(long double x, long double y) {
2723
/* arguments are equal or signed zero */
2824
signbit(x) ? y : x;
2925
}
30-
31-
long double _debug_fmaxl(long double, long double) __attribute__((alias("fmaxl")));

src/libc/fmin.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ float fminf(float x, float y) {
1313

1414
double fmin(double, double) __attribute__((alias("fminf")));
1515

16-
#ifdef fminl
17-
#undef fminl
18-
#endif
19-
2016
long double fminl(long double x, long double y) {
2117
return
2218
isless(x, y) ? x :
@@ -27,5 +23,3 @@ long double fminl(long double x, long double y) {
2723
/* arguments are equal or signed zero */
2824
signbit(x) ? x : y;
2925
}
30-
31-
long double _debug_fminl(long double, long double) __attribute__((alias("fminl")));

src/libc/include/__math_def.h

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -328,31 +328,6 @@ double trunc(double);
328328
float truncf(float);
329329
long double truncl(long double);
330330

331-
/* aliases */
332-
333-
long double _debug_fabsl(long double) __NOEXCEPT_CONST;
334-
#define fabsl _debug_fabsl
335-
long double _debug_copysignl(long double, long double) __NOEXCEPT_CONST;
336-
#define copysignl _debug_copysignl
337-
long double _debug_fmaxl(long double, long double);
338-
#define fmaxl _debug_fmaxl
339-
long double _debug_fminl(long double, long double);
340-
#define fminl _debug_fminl
341-
long double _debug_truncl(long double);
342-
#define truncl _debug_truncl
343-
long double _debug_floorl(long double);
344-
#define floorl _debug_floorl
345-
long double _debug_ceill(long double);
346-
#define ceill _debug_ceill
347-
long double _debug_roundl(long double);
348-
#define roundl _debug_roundl
349-
long double _debug_nearbyintl(long double);
350-
#define nearbyintl _debug_nearbyintl
351-
long double _debug_rintl(long double);
352-
#define rintl _debug_rintl
353-
long double _debug_fmal(long double, long double, long double);
354-
#define fmal _debug_fmal
355-
356331
#ifdef __cplusplus
357332
}
358333
#endif

src/libc/roundl.src

Lines changed: 0 additions & 71 deletions
This file was deleted.

0 commit comments

Comments
 (0)