ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/rtmath.h
(Generate patch)

Comparing ray/src/common/rtmath.h (file contents):
Revision 3.4 by greg, Sat May 31 19:38:36 2008 UTC vs.
Revision 3.7 by greg, Sat Jun 29 15:46:02 2013 UTC

# Line 33 | Line 33 | typedef struct {
33   #define  PI             3.14159265358979323846
34   #endif
35   #endif
36 +                                        /* defined in tcos.c */
37 + extern double   tcos(double x);
38 + extern double   atan2a(double y, double x);
39  
40 < #ifdef  FASTMATH
40 > #ifdef  __FAST_MATH__
41   #define  tcos                   cos
42   #define  tsin                   sin
43   #define  ttan                   tan
# Line 43 | Line 46 | typedef struct {
46   #define  tsin(x)                tcos((x)-(PI/2.))
47   #define  ttan(x)                (tsin(x)/tcos(x))
48   #endif
46                                        /* defined in tcos.c */
47 extern double   tcos(double x);
49                                          /* defined in xf.c */
50   extern int      xf(XF *ret, int ac, char *av[]);
51   extern int      invxf(XF *ret, int ac, char *av[]);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines