From c7392feeccfd2d71cb7751bd31c1483aa35a7633 Mon Sep 17 00:00:00 2001 From: David Schultz Date: Sun, 30 Mar 2008 20:48:02 +0000 Subject: [PATCH] Hook remquol() and remainderl() up to the build. --- lib/msun/Makefile | 10 ++++++---- lib/msun/Symbol.map | 2 ++ lib/msun/man/remainder.3 | 31 ++++++++++++++++++++++++------- lib/msun/src/math.h | 2 +- 4 files changed, 33 insertions(+), 12 deletions(-) diff --git a/lib/msun/Makefile b/lib/msun/Makefile index 9b2e8fe4f271..3ffe7e428a6a 100644 --- a/lib/msun/Makefile +++ b/lib/msun/Makefile @@ -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 diff --git a/lib/msun/Symbol.map b/lib/msun/Symbol.map index 42258f121dec..3f73c92f09ef 100644 --- a/lib/msun/Symbol.map +++ b/lib/msun/Symbol.map @@ -206,4 +206,6 @@ FBSD_1.1 { hypotl; cabsl; csqrtl; + remquol; + remainderl; }; diff --git a/lib/msun/man/remainder.3 b/lib/msun/man/remainder.3 index 56233832ae43..e04cdf7251dd 100644 --- a/lib/msun/man/remainder.3 +++ b/lib/msun/man/remainder.3 @@ -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 . diff --git a/lib/msun/src/math.h b/lib/msun/src/math.h index 78fb9958c206..c27a2be39291 100644 --- a/lib/msun/src/math.h +++ b/lib/msun/src/math.h @@ -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);