--- ray/src/px/mx3.h 2003/05/13 17:58:33 2.3 +++ ray/src/px/mx3.h 2003/07/14 22:24:00 2.5 @@ -1,9 +1,15 @@ -/* RCSid: $Id: mx3.h,v 2.3 2003/05/13 17:58:33 greg Exp $ */ -#ifndef MX3_HDR -#define MX3_HDR +/* RCSid: $Id: mx3.h,v 2.5 2003/07/14 22:24:00 schorsch Exp $ */ +#ifndef _RAD_MX3_H_ +#define _RAD_MX3_H_ -#define mx3_copy(a, b) bcopy(a, b, 3*3*sizeof(double)) +#include +#ifdef __cplusplus +extern "C" { +#endif + +#define mx3_copy(a, b) memcpy(b, a, 3*3*sizeof(double)) + /* FLOAT VERSIONS */ float mx3f_adjoint(/* a, b */); void mx3f_mul(/* a, b, c */); @@ -14,7 +20,7 @@ void mx3f_scale_mat(/* sx, sy, a */); void mx3f_scale(/* a, sx, sy */); void mx3f_transform(/* p, a, q */); float mx3f_transform_div(/* p, a, q */); -#define mx3f_copy(a, b) bcopy(a, b, 3*3*sizeof(float)) +#define mx3f_copy(a, b) memcpy(b, a, 3*3*sizeof(float)) /* DOUBLE VERSIONS */ double mx3d_adjoint(/* a, b */); @@ -26,6 +32,9 @@ void mx3d_scale_mat(/* sx, sy, a */); void mx3d_scale(/* a, sx, sy */); void mx3d_transform(/* p, a, q */); double mx3d_transform_div(/* p, a, q */); -#define mx3d_copy(a, b) bcopy(a, b, 3*3*sizeof(double)) +#define mx3d_copy(a, b) memcpy(b, a, 3*3*sizeof(double)) +#ifdef __cplusplus +} #endif +#endif /* _RAD_MX3_H_ */