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

Comparing ray/src/px/mx3.h (file contents):
Revision 2.1 by greg, Wed Oct 11 10:39:27 1995 UTC vs.
Revision 2.5 by schorsch, Mon Jul 14 22:24:00 2003 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1995 Regents of the University of California */
1 > /* RCSid: $Id$ */
2 > #ifndef _RAD_MX3_H_
3 > #define _RAD_MX3_H_
4  
5 < /* SCCSid "$SunId$ LBL" */
5 > #include <string.h>
6  
7 < #ifndef MX3_HDR
8 < #define MX3_HDR
7 > #ifdef __cplusplus
8 > extern "C" {
9 > #endif
10  
11 < #define mx3_copy(a, b) bcopy(a, b, 3*3*sizeof(double))
11 > #define mx3_copy(a, b) memcpy(b, a, 3*3*sizeof(double))
12  
13   /* FLOAT VERSIONS */
14   float  mx3f_adjoint(/* a, b */);
# Line 17 | Line 20 | void  mx3f_scale_mat(/* sx, sy, a */);
20   void  mx3f_scale(/* a, sx, sy */);
21   void  mx3f_transform(/* p, a, q */);
22   float  mx3f_transform_div(/* p, a, q */);
23 < #define mx3f_copy(a, b) bcopy(a, b, 3*3*sizeof(float))
23 > #define mx3f_copy(a, b) memcpy(b, a, 3*3*sizeof(float))
24  
25   /* DOUBLE VERSIONS */
26   double  mx3d_adjoint(/* a, b */);
# Line 29 | Line 32 | void  mx3d_scale_mat(/* sx, sy, a */);
32   void  mx3d_scale(/* a, sx, sy */);
33   void  mx3d_transform(/* p, a, q */);
34   double  mx3d_transform_div(/* p, a, q */);
35 < #define mx3d_copy(a, b) bcopy(a, b, 3*3*sizeof(double))
35 > #define mx3d_copy(a, b) memcpy(b, a, 3*3*sizeof(double))
36  
37 + #ifdef __cplusplus
38 + }
39   #endif
40 + #endif /* _RAD_MX3_H_ */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines