Skip to content

Commit a871457

Browse files
authored
Merge pull request #230 from PetteriAimonen/master
Replace remaining __strong_alias uses
2 parents a090d3e + 327b1bd commit a871457

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

src/s_cabs.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@
1919
#include <openlibm_complex.h>
2020
#include <openlibm_math.h>
2121

22+
#include "math_private.h"
23+
2224
double
2325
cabs(double complex z)
2426
{
2527
return hypot(__real__ z, __imag__ z);
2628
}
2729

2830
#if LDBL_MANT_DIG == DBL_MANT_DIG
29-
__strong_alias(cabsl, cabs);
31+
openlibm_strong_reference(cabs, cabsl);
3032
#endif /* LDBL_MANT_DIG == DBL_MANT_DIG */

src/s_ccos.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
#include <openlibm_complex.h>
5454
#include <openlibm_math.h>
5555

56+
#include "math_private.h"
57+
5658
/* calculate cosh and sinh */
5759

5860
static void
@@ -85,5 +87,5 @@ ccos(double complex z)
8587
}
8688

8789
#if LDBL_MANT_DIG == DBL_MANT_DIG
88-
__strong_alias(ccosl, ccos);
90+
openlibm_strong_reference(ccos, ccosl);
8991
#endif /* LDBL_MANT_DIG == DBL_MANT_DIG */

src/s_csin.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@
5555
#include <openlibm_complex.h>
5656
#include <openlibm_math.h>
5757

58+
#include "math_private.h"
59+
5860
/* calculate cosh and sinh */
5961

6062
static void
@@ -87,5 +89,5 @@ csin(double complex z)
8789
}
8890

8991
#if LDBL_MANT_DIG == DBL_MANT_DIG
90-
__strong_alias(csinl, csin);
92+
openlibm_strong_reference(csin, csinl);
9193
#endif /* LDBL_MANT_DIG == DBL_MANT_DIG */

src/s_ctan.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@
6060
#include <openlibm_complex.h>
6161
#include <openlibm_math.h>
6262

63+
#include "math_private.h"
64+
6365
#define MACHEP 1.1e-16
6466
#define MAXNUM 1.0e308
6567

@@ -153,5 +155,5 @@ ctan(double complex z)
153155
}
154156

155157
#if LDBL_MANT_DIG == DBL_MANT_DIG
156-
__strong_alias(ctanl, ctan);
158+
openlibm_strong_reference(ctan, ctanl);
157159
#endif /* LDBL_MANT_DIG == DBL_MANT_DIG */

0 commit comments

Comments
 (0)