Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libm/man omit mention of cabs (not relevant to this man ...



details:   https://anonhg.NetBSD.org/src/rev/a9e783bdaa8a
branches:  trunk
changeset: 826740:a9e783bdaa8a
user:      maya <maya%NetBSD.org@localhost>
date:      Tue Sep 26 15:42:54 2017 +0000

description:
omit mention of cabs (not relevant to this man page)
mention type-generic hypot
mention hypotl

diffstat:

 lib/libm/man/hypot.3 |  21 ++++++++++-----------
 1 files changed, 10 insertions(+), 11 deletions(-)

diffs (50 lines):

diff -r 61b868dc5429 -r a9e783bdaa8a lib/libm/man/hypot.3
--- a/lib/libm/man/hypot.3      Tue Sep 26 15:12:57 2017 +0000
+++ b/lib/libm/man/hypot.3      Tue Sep 26 15:42:54 2017 +0000
@@ -26,14 +26,15 @@
 .\" SUCH DAMAGE.
 .\"
 .\"     from: @(#)hypot.3      6.7 (Berkeley) 5/6/91
-.\"    $NetBSD: hypot.3,v 1.17 2007/02/22 22:08:20 drochner Exp $
+.\"    $NetBSD: hypot.3,v 1.18 2017/09/26 15:42:54 maya Exp $
 .\"
-.Dd February 12, 2007
+.Dd September 26, 2017
 .Dt HYPOT 3
 .Os
 .Sh NAME
 .Nm hypot ,
-.Nm hypotf
+.Nm hypotf ,
+.Nm hypotl
 .Nd Euclidean distance and complex absolute value functions
 .Sh LIBRARY
 .Lb libm
@@ -43,6 +44,11 @@
 .Fn hypot "double x" "double y"
 .Ft float
 .Fn hypotf "float x" "float y"
+.Ft long double
+.Fn hypotl "long double x" "long double y"
+.In tgmath.h
+.Ft real-floating
+.Fn hypot "real-floating" "real-floating"
 .Sh DESCRIPTION
 The
 .Fn hypot
@@ -111,14 +117,7 @@
 .Xr math 3 ,
 .Xr sqrt 3
 .Sh HISTORY
-Both a
+The
 .Fn hypot
-function and a
-.Fn cabs
-function
 appeared in
 .At v7 .
-.Fn cabs
-was removed from public namespace in
-.Nx 5.0
-to avoid conflicts with the complex function in C99.



Home | Main Index | Thread Index | Old Index