_PROTOTYPE( double modf, (double _x, double *_iptr) );
_PROTOTYPE( double pow, (double _x, double _y) );
_PROTOTYPE( double rint, (double _x) );
+_PROTOTYPE( double scalbn, (double _x, int _exp) );
+_PROTOTYPE( float scalbnf, (float _x, int _exp) );
+_PROTOTYPE( double scalbln, (double _x, long _exp) );
+_PROTOTYPE( float scalblnf, (float _x, long _exp) );
_PROTOTYPE( double sin, (double _x) );
_PROTOTYPE( double sinh, (double _x) );
_PROTOTYPE( double sqrt, (double _x) );
log10.c \
pow.c \
s_rint.c \
+ scalbn.c \
sin.c \
sinh.c \
sqrt.c \
--- /dev/null
+#include <math.h>
+
+double scalbln(double x, long n)
+{
+ return ldexp(x, n);
+}
+
+float scalblnf(float x, long n)
+{
+ return ldexp(x, n);
+}
+
+double scalbn(double x, int n)
+{
+ return ldexp(x, n);
+}
+
+float scalbnf(float x, int n)
+{
+ return ldexp(x, n);
+}
+
--- /dev/null
+.TH LDEXP 3 "January 7, 2009"
+.UC 4
+.SH NAME
+ldexp, scalbn, scalbnf, scalbln, scalblnf \- compute absolute value
+.SH SYNOPSIS
+.nf
+.ft B
+#include <math.h>
+
+double ldexp(double \fIx\fP, int \fIn\fP);
+double scalbn(double \fIx\fP, int \fIn\fP);
+float scalbnf(float \fIx\fP, int \fIn\fP);
+double scalbln(double \fIx\fP, long \fIn\fP);
+float scalblnf(float \fIx\fP, long \fIn\fP);
+.fi
+.SH DESCRIPTION
+These functions all compute \fIx\fP * 2^\fIn\fP.
+.SH "RETURN VALUE
+These functions all return \fIx\fP * 2^\fIn\fP.