summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2005-01-12 22:16:26 +0000
committerstefanf <stefanf@FreeBSD.org>2005-01-12 22:16:26 +0000
commit86ef5da3d792b030e704c030b3756abed7a7ed2c (patch)
treebd604e0f5f032998d9622ee83c98fb5a9f0b16b8
parent9704cf1a6771ec7a81fa75dd723d436dd5ffc6cf (diff)
downloadFreeBSD-src-86ef5da3d792b030e704c030b3756abed7a7ed2c.zip
FreeBSD-src-86ef5da3d792b030e704c030b3756abed7a7ed2c.tar.gz
Hook up and document floorl().
-rw-r--r--lib/msun/Makefile4
-rw-r--r--lib/msun/man/floor.317
2 files changed, 16 insertions, 5 deletions
diff --git a/lib/msun/Makefile b/lib/msun/Makefile
index 209ea4e..61dfac0 100644
--- a/lib/msun/Makefile
+++ b/lib/msun/Makefile
@@ -83,7 +83,7 @@ COMMON_SRCS= b_exp.c b_log.c b_tgamma.c \
s_asinh.c s_asinhf.c s_atan.c s_atanf.c s_cbrt.c s_cbrtf.c s_ceil.c \
s_ceilf.c s_copysign.c s_copysignf.c s_cos.c s_cosf.c s_erf.c s_erff.c \
s_expm1.c s_expm1f.c s_fabsf.c s_fdim.c s_finite.c s_finitef.c \
- s_floor.c s_floorf.c s_fmax.c s_fmaxf.c s_fmaxl.c s_fmin.c \
+ s_floor.c s_floorf.c s_floorl.c s_fmax.c s_fmaxf.c s_fmaxl.c s_fmin.c \
s_fminf.c s_fminl.c s_frexp.c s_frexpf.c s_ilogb.c s_ilogbf.c \
s_ilogbl.c s_isfinite.c s_isnan.c s_isnormal.c s_ldexpf.c \
s_lib_version.c s_llrint.c s_llrintf.c s_llround.c s_llroundf.c \
@@ -161,7 +161,7 @@ MLINKS+=feclearexcept.3 fegetexceptflag.3 feclearexcept.3 feraiseexcept.3 \
MLINKS+=fegetenv.3 feholdexcept.3 fegetenv.3 fesetenv.3 \
fegetenv.3 feupdateenv.3
MLINKS+=fegetround.3 fesetround.3
-MLINKS+=floor.3 floorf.3
+MLINKS+=floor.3 floorf.3 floor.3 floorl.3
MLINKS+=fmax.3 fmaxf.3 fmax.3 fmaxl.3 \
fmax.3 fmin.3 fmax.3 fminf.3 fmax.3 fminl.3
MLINKS+=fmod.3 fmodf.3
diff --git a/lib/msun/man/floor.3 b/lib/msun/man/floor.3
index 6155880..dcea9aa 100644
--- a/lib/msun/man/floor.3
+++ b/lib/msun/man/floor.3
@@ -37,7 +37,8 @@
.Os
.Sh NAME
.Nm floor ,
-.Nm floorf
+.Nm floorf ,
+.Nm floorl
.Nd largest integral value less than or equal to x
.Sh LIBRARY
.Lb libm
@@ -47,11 +48,15 @@
.Fn floor "double x"
.Ft float
.Fn floorf "float x"
+.Ft long double
+.Fn floorl "long double x"
.Sh DESCRIPTION
The
-.Fn floor
-and the
+.Fn floor ,
+the
.Fn floorf
+and the
+.Fn floorl
functions return the largest integral value
less than or equal to
.Fa x ,
@@ -70,3 +75,9 @@ The
.Fn floor
function conforms to
.St -isoC .
+The
+.Fn floorf
+and the
+.Fn floorl
+functions conform to
+.St -isoC-99 .
OpenPOWER on IntegriCloud