summaryrefslogtreecommitdiffstats
path: root/lib/libm/noieee_src/n_cabs.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2002-10-11 12:41:09 +0000
committermiod <miod@openbsd.org>2002-10-11 12:41:09 +0000
commit1f9e2821123f36bc2aea7701df1770c12184b13c (patch)
treed9d5b55f22a55ebf2216811786f24c1d2eb35173 /lib/libm/noieee_src/n_cabs.c
parentmake CBQ aware of the pf API so that pf developers can play with CBQ. (diff)
downloadwireguard-openbsd-1f9e2821123f36bc2aea7701df1770c12184b13c.tar.xz
wireguard-openbsd-1f9e2821123f36bc2aea7701df1770c12184b13c.zip
scalb() in vax libm is in fact scalbn(), so change the symbol name.
Only affects vax, which has no shared libraries, so no version change needed for libm. Someone with enough math skills ought to code a real scalb() on a rainy day...
Diffstat (limited to 'lib/libm/noieee_src/n_cabs.c')
-rw-r--r--lib/libm/noieee_src/n_cabs.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libm/noieee_src/n_cabs.c b/lib/libm/noieee_src/n_cabs.c
index f7c153e473b..097a0b6a020 100644
--- a/lib/libm/noieee_src/n_cabs.c
+++ b/lib/libm/noieee_src/n_cabs.c
@@ -45,7 +45,7 @@ static char sccsid[] = "@(#)cabs.c 8.1 (Berkeley) 6/4/93";
* Required system supported functions :
* copysign(x,y)
* finite(x)
- * scalb(x,N)
+ * scalbn(x,N)
* sqrt(x)
*
* Method :
@@ -208,12 +208,12 @@ double x, y;
if(x == zero) return(zero);
if(y == zero) return(x);
exp= logb(x);
- x=scalb(x,-exp);
+ x=scalbn(x,-exp);
if(exp-(int)logb(y) > ibig )
/* raise inexact flag and return |x| */
- { one+small; return(scalb(x,exp)); }
- else y=scalb(y,-exp);
- return(scalb(sqrt(x*x+y*y),exp));
+ { one+small; return(scalbn(x,exp)); }
+ else y=scalbn(y,-exp);
+ return(scalbn(sqrt(x*x+y*y),exp));
}
else if(y==y) /* y is +-INF */