From owner-freebsd-standards@FreeBSD.ORG Sun Jun 26 17:00:57 2005 Return-Path: X-Original-To: freebsd-standards@FreeBSD.org Delivered-To: freebsd-standards@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D999216A41C; Sun, 26 Jun 2005 17:00:57 +0000 (GMT) (envelope-from kargl@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id A972D43D53; Sun, 26 Jun 2005 17:00:57 +0000 (GMT) (envelope-from kargl@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.13.4/8.13.4) with ESMTP id j5QH0vcX098374; Sun, 26 Jun 2005 10:00:57 -0700 (PDT) (envelope-from kargl@troutmask.apl.washington.edu) Received: (from kargl@localhost) by troutmask.apl.washington.edu (8.13.4/8.13.1/Submit) id j5QH0vEF098373; Sun, 26 Jun 2005 10:00:57 -0700 (PDT) (envelope-from kargl) From: "Steven G. Kargl" Message-Id: <200506261700.j5QH0vEF098373@troutmask.apl.washington.edu> In-Reply-To: <200506252340.j5PNeCQd005977@freefall.freebsd.org> To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-standards@FreeBSD.org Date: Sun, 26 Jun 2005 10:00:57 -0700 (PDT) X-Mailer: ELM [version 2.4ME+ PL119 (25)] MIME-Version: 1.0 Content-Type: multipart/mixed; boundary=ELM1119805257-98328-0_ Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: standards/82654: C99 long double math functions are missing X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jun 2005 17:00:58 -0000 --ELM1119805257-98328-0_ Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII 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/ --ELM1119805257-98328-0_ Content-Transfer-Encoding: 7bit Content-Type: text/x-patch Content-Disposition: attachment; filename=hypot.3.diff Content-Description: --- 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 . .Pp --ELM1119805257-98328-0_--