Skip to content

Commit 2a299dc

Browse files
grey-eminencesys_zuul
authored andcommitted
Fix for BiF module linking (conflicting scalbn builtin function name issue).
Change-Id: I91164ed18df97f5c418abd1df595ed68faeb637d
1 parent ee29c1e commit 2a299dc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

IGC/BiFModule/Implementation/ExternalLibraries/sun/fdlibm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ but these catch some common cases. */
6666
#define TLOSS 5
6767
#define PLOSS 6
6868

69-
extern double scalbn __P((double, int));
69+
extern double __scalbn_tmp __P((double, int));
7070

7171
extern int matherr __P((struct exception *));
7272

IGC/BiFModule/Implementation/ExternalLibraries/sun/sun_pow.cl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ huge = 1.0e+300,
4949
tiny = 1.0e-300;
5050

5151
#ifdef __STDC__
52-
double scalbn (double x, int n)
52+
double __scalbn_tmp (double x, int n)
5353
#else
54-
double scalbn (x,n)
54+
double __scalbn_tmp (x,n)
5555
double x; int n;
5656
#endif
5757
{
@@ -363,7 +363,7 @@ double sun_pow(double x, double y)
363363
z = one-(r-z);
364364
j = __HI(z);
365365
j += (n<<20);
366-
if((j>>20)<=0) z = scalbn(z,n); /* subnormal output */
366+
if((j>>20)<=0) z = __scalbn_tmp(z,n); /* subnormal output */
367367
else __HI(z) += (n<<20);
368368
return s*z;
369369
}

0 commit comments

Comments
 (0)