Hook remquol() and remainderl() up to the build.

This commit is contained in:
David Schultz 2008-03-30 20:48:02 +00:00
parent a2e5f27559
commit c7392feecc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=177766
4 changed files with 33 additions and 12 deletions

View File

@ -79,10 +79,12 @@ SYMBOL_MAPS= ${SYM_MAPS}
COMMON_SRCS+= s_copysignl.c s_fabsl.c s_llrintl.c s_lrintl.c s_modfl.c
.if ${LDBL_PREC} != 53
# If long double != double use these; otherwise, we alias the double versions.
COMMON_SRCS+= e_hypotl.c e_sqrtl.c k_cosl.c k_sinl.c k_tanl.c \
COMMON_SRCS+= e_hypotl.c e_remainderl.c e_sqrtl.c \
k_cosl.c k_sinl.c k_tanl.c \
s_ceill.c s_cosl.c s_csqrtl.c s_exp2l.c s_floorl.c s_fmal.c \
s_frexpl.c s_logbl.c s_nanl.c s_nextafterl.c s_nexttoward.c \
s_rintl.c s_scalbnl.c s_sinl.c s_tanl.c s_truncl.c w_cabsl.c
s_remquol.c s_rintl.c s_scalbnl.c \
s_sinl.c s_tanl.c s_truncl.c w_cabsl.c
.endif
# C99 complex functions
@ -163,8 +165,8 @@ MLINKS+=nan.3 nanf.3 nan.3 nanl.3
MLINKS+=nextafter.3 nextafterf.3 nextafter.3 nextafterl.3
MLINKS+=nextafter.3 nexttoward.3 nextafter.3 nexttowardf.3
MLINKS+=nextafter.3 nexttowardl.3
MLINKS+=remainder.3 remainderf.3
MLINKS+=remainder.3 remquo.3 remainder.3 remquof.3
MLINKS+=remainder.3 remainderf.3 remainder.3 remainderl.3 \
remainder.3 remquo.3 remainder.3 remquof.3 remainder.3 remquol.3
MLINKS+=rint.3 rintf.3 rint.3 rintl.3 \
rint.3 nearbyint.3 rint.3 nearbyintf.3 rint.3 nearbyintl.3
MLINKS+=round.3 roundf.3 round.3 roundl.3

View File

@ -206,4 +206,6 @@ FBSD_1.1 {
hypotl;
cabsl;
csqrtl;
remquol;
remainderl;
};

View File

@ -28,14 +28,16 @@
.\" from: @(#)ieee.3 6.4 (Berkeley) 5/6/91
.\" $FreeBSD$
.\"
.Dd March 24, 2005
.Dd March 30, 2008
.Dt REMAINDER 3
.Os
.Sh NAME
.Nm remainder ,
.Nm remainderf ,
.Nm remainderl ,
.Nm remquo ,
.Nm remquof
.Nm remquof ,
.Nm remquol
.Nd minimal residue functions
.Sh LIBRARY
.Lb libm
@ -45,16 +47,22 @@
.Fn remainder "double x" "double y"
.Ft float
.Fn remainderf "float x" "float y"
.Ft long double
.Fn remainderl "long double x" "long double y"
.Ft double
.Fn remquo "double x" "double y" "int *quo"
.Ft float
.Fn remquof "float x" "float y" "int *quo"
.Ft long double
.Fn remquol "long double x" "long double y" "int *quo"
.Sh DESCRIPTION
.Fn remainder ,
.Fn remainderf ,
.Fn remainderl ,
.Fn remquo ,
.Fn remquof ,
and
.Fn remquof
.Fn remquol
return the remainder
.Fa r
:=
@ -94,9 +102,10 @@ is 0 or
is \*(Pm\*(If is an invalid operation that produces a \*(Na.
.Pp
The
.Fn remquo
.Fn remquo ,
.Fn remquof ,
and
.Fn remquof
.Fn remquol
functions also store the last
.Va k
bits of
@ -117,9 +126,11 @@ is platform-specific, but is guaranteed to be at least 3.
The
.Fn remainder ,
.Fn remainderf ,
.Fn remainderl ,
.Fn remquo ,
.Fn remquof ,
and
.Fn remquof
.Fn remquol
routines conform to
.St -isoC-99 .
The remainder is as defined in
@ -139,4 +150,10 @@ The
and
.Fn remquof
functions were added in
.Fx 6.0 .
.Fx 6.0 ,
and
.Fn remainderl
and
.Fn remquol
were added in
.Fx 8.0 .

View File

@ -455,9 +455,9 @@ float nexttowardf(float, long double);
long double nexttowardl(long double, long double);
#if 0
long double powl(long double, long double);
#endif
long double remainderl(long double, long double);
long double remquol(long double, long double, int *);
#endif
long double rintl(long double);
long double roundl(long double);
long double scalblnl(long double, long);