Email List: Xaustin-review-lX
[All Lists]

Re: Defect in XSH atan2 (revised 1)

To: Loic Domaigne <yyyyyyyy@xxxxxxx>
Subject: Re: Defect in XSH atan2 (revised 1)
From: "Clive D.W. Feather" <yyyyy@xxxxxxxxx>
Date: Thu, 31 Jul 2003 08:56:32 +0100
Cc: yyyyyyyyyyyyyyy@xxxxxxxxxxxxx
References: <31327.1059572126@www64.gmx.net>
Loic Domaigne said:
> #include <math.h>
> 
> void 
> cartesian_to_polar(const double x, const double y, /* cartesian */
>                  double *rho, double *theta      /* polar */

I would declare these as restrict, meaning that they are guaranteed to
point to different objects. However, this might be viewed as unnecessary in
an example, even if good practice elsewhere.

-- 
Clive D.W. Feather  | Work:  <yyyyy@xxxxxxxxx>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <yyyyy@xxxxxxxxxx>  | *** NOTE CHANGE ***
Demon Internet      | WWW: http://www.davros.org | Fax:    +44 870 051 9937
Thus plc            |                            | Mobile: +44 7973 377646

<Prev in Thread] Current Thread [Next in Thread>