mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 15:31:39 +00:00
mathlib.h, mathlib.c: changed nanmask from being a global to being
a macro. git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@275 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
9998315606
commit
088d07a753
2 changed files with 2 additions and 3 deletions
|
@ -25,7 +25,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
#include "quakedef.h"
|
||||
|
||||
vec3_t vec3_origin = {0,0,0};
|
||||
int nanmask = 255<<23;
|
||||
|
||||
/*-----------------------------------------------------------------*/
|
||||
|
||||
|
|
|
@ -42,9 +42,9 @@ typedef int fixed16_t;
|
|||
struct mplane_s;
|
||||
|
||||
extern vec3_t vec3_origin;
|
||||
extern int nanmask;
|
||||
|
||||
#define IS_NAN(x) (((*(int *)&x)&nanmask)==nanmask)
|
||||
#define nanmask (255<<23) /* 7F800000 */
|
||||
#define IS_NAN(x) (((*(int *) &x) & nanmask) == nanmask)
|
||||
|
||||
#define CLAMP(_minval, x, _maxval) ((x) < (_minval) ? (_minval) : (x) > (_maxval) ? (_maxval) : (x))
|
||||
|
||||
|
|
Loading…
Reference in a new issue