Date: Sun, 26 Jun 2005 10:00:57 -0700 (PDT) From: "Steven G. Kargl" <kargl@troutmask.apl.washington.edu> To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-standards@FreeBSD.org Subject: Re: standards/82654: C99 long double math functions are missing Message-ID: <200506261700.j5QH0vEF098373@troutmask.apl.washington.edu> In-Reply-To: <200506252340.j5PNeCQd005977@freefall.freebsd.org>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] FreeBSD-gnats-submit@FreeBSD.org wrote: > >Category: standards > >Responsible: freebsd-standards > >Synopsis: C99 long double math functions are missing > >Arrival-Date: Sat Jun 25 23:40:12 GMT 2005 > The attached files implement hypotl() and cabsl(). The documentation has been updated. Note hypot(3) manpage refers to a non-existent cabs.c file. -- Steve http://troutmask.apl.washington.edu/~kargl/ [-- Attachment #2 --] --- hypot.3.orig Sun Jun 26 09:46:01 2005 +++ hypot.3 Sun Jun 26 09:53:20 2005 @@ -38,8 +38,10 @@ .Sh NAME .Nm hypot , .Nm hypotf , +.Nm hypotl , .Nm cabs , -.Nm cabsf +.Nm cabsf , +.Nm cabsl .Nd Euclidean distance and complex absolute value functions .Sh LIBRARY .Lb libm @@ -49,25 +51,31 @@ .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 complex.h .Ft double .Fn cabs "double complex z" .Ft float .Fn cabsf "float complex z" +.Ft "long double" +.Fn cabsl "long double complex z" .Sh DESCRIPTION The -.Fn hypot +.Fn hypot , +.Fn hypotf , and -.Fn hypotf +.Fn hypotl functions compute the sqrt(x*x+y*y) in such a way that underflow will not happen, and overflow occurs only if the final result deserves it. The -.Fn cabs +.Fn cabs , +.Fn cabsf , and -.Fn cabsf +.Fn cabsl functions compute the complex absolute value of .Fa z . .Pphelp
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200506261700.j5QH0vEF098373>
