--- ray/src/common/dircode.c 2003/06/07 12:50:20 2.4 +++ ray/src/common/dircode.c 2003/06/20 00:25:49 2.5 @@ -1,8 +1,8 @@ #ifndef lint -static const char RCSid[] = "$Id: dircode.c,v 2.4 2003/06/07 12:50:20 schorsch Exp $"; +static const char RCSid[] = "$Id: dircode.c,v 2.5 2003/06/20 00:25:49 greg Exp $"; #endif /* - * Compute a 4-byte direction code (int4 type defined in standard.h). + * Compute a 4-byte direction code (int32 type defined in standard.h). * * Mean accuracy is 0.0022 degrees, with a maximum error of 0.0058 degrees. */ @@ -19,11 +19,11 @@ static const char RCSid[] = "$Id: dircode.c,v 2.4 2003 #define F2SFT 18 #define FMASK 0x1fff -int4 +int32 encodedir(dv) /* encode a normalized direction vector */ FVECT dv; { - register int4 dc = 0; + register int32 dc = 0; int cd[3], cm; register int i; @@ -53,7 +53,7 @@ FVECT dv; void decodedir(dv, dc) /* decode a normalized direction vector */ register FVECT dv; /* returned */ -register int4 dc; +register int32 dc; { double d1, d2, der; @@ -77,7 +77,7 @@ register int4 dc; double dir2diff(dc1, dc2) /* approx. radians^2 between directions */ -int4 dc1, dc2; +int32 dc1, dc2; { FVECT v1, v2; @@ -90,7 +90,7 @@ int4 dc1, dc2; double fdir2diff(dc1, v2) /* approx. radians^2 between directions */ -int4 dc1; +int32 dc1; register FVECT v2; { FVECT v1;