diff --git a/src/baseq2/q_shared.h b/src/baseq2/q_shared.h index e93b4d6..4ef6a24 100644 --- a/src/baseq2/q_shared.h +++ b/src/baseq2/q_shared.h @@ -143,9 +143,11 @@ struct cplane_s; extern vec3_t vec3_origin; +/* unused #define nanmask (255<<23) #define IS_NAN(x) (((*(int *)&x)&nanmask)==nanmask) +*/ /* FIXME: (jaq) use them C99 functions instead */ // microsoft's fabs seems to be ungodly slow... diff --git a/src/ctf/q_shared.h b/src/ctf/q_shared.h index 89ae761..2acb947 100644 --- a/src/ctf/q_shared.h +++ b/src/ctf/q_shared.h @@ -143,9 +143,11 @@ struct cplane_s; extern vec3_t vec3_origin; +/* unused #define nanmask (255<<23) #define IS_NAN(x) (((*(int *)&x)&nanmask)==nanmask) +*/ /* FIXME: (jaq) use them C99 functions instead */ // microsoft's fabs seems to be ungodly slow... diff --git a/src/q_shared.c b/src/q_shared.c index 5ac5814..e94eff9 100644 --- a/src/q_shared.c +++ b/src/q_shared.c @@ -1,22 +1,28 @@ -/* -Copyright (C) 1997-2001 Id Software, Inc. +/* $Id$ + * + * Copyright (C) 1997-2001 Id Software, Inc. + * Copyright (c) 2002 The Quakeforge Project. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; either version 2 -of the License, or (at your option) any later version. +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -See the GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - -*/ #include "q_shared.h" #define DEG2RAD( a ) ( a * M_PI ) / 180.0F @@ -345,7 +351,7 @@ BoxOnPlaneSide Returns 1, 2, or 1 + 2 ================== */ -#ifdef USE_ASM +#ifdef HAVE_MASM # pragma warning( disable: 4035 ) __declspec( naked ) int BoxOnPlaneSide (vec3_t emins, vec3_t emaxs, struct cplane_s *p) diff --git a/src/q_shared.h b/src/q_shared.h index e93b4d6..8d44f40 100644 --- a/src/q_shared.h +++ b/src/q_shared.h @@ -1,22 +1,24 @@ -/* -Copyright (C) 1997-2001 Id Software, Inc. +/* $Id$ + * + * Copyright (C) 1997-2001 Id Software, Inc. + * Copyright (c) 2002 The Quakeforge Project. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; either version 2 -of the License, or (at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -See the GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - -*/ #include "gcc_attr.h" // q_shared.h -- included first by ALL program modules @@ -143,9 +145,11 @@ struct cplane_s; extern vec3_t vec3_origin; +/* unused #define nanmask (255<<23) #define IS_NAN(x) (((*(int *)&x)&nanmask)==nanmask) +*/ /* FIXME: (jaq) use them C99 functions instead */ // microsoft's fabs seems to be ungodly slow...