--- ray/src/px/mx3.h 1995/10/11 10:39:27 2.1 +++ ray/src/px/mx3.h 2003/07/14 22:24:00 2.5 @@ -1,11 +1,14 @@ -/* Copyright (c) 1995 Regents of the University of California */ +/* RCSid: $Id: mx3.h,v 2.5 2003/07/14 22:24:00 schorsch Exp $ */ +#ifndef _RAD_MX3_H_ +#define _RAD_MX3_H_ -/* SCCSid "$SunId$ LBL" */ +#include -#ifndef MX3_HDR -#define MX3_HDR +#ifdef __cplusplus +extern "C" { +#endif -#define mx3_copy(a, b) bcopy(a, b, 3*3*sizeof(double)) +#define mx3_copy(a, b) memcpy(b, a, 3*3*sizeof(double)) /* FLOAT VERSIONS */ float mx3f_adjoint(/* a, b */); @@ -17,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 */); @@ -29,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_ */