]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - quakedef.h
added PRVM_64 define which upgrades the QC VM to double precision
[xonotic/darkplaces.git] / quakedef.h
index 66fdfb308c9ccffec4f6be4de38e7b5cece082d5..a3ba79f3abd901a702db039df625cf10969b6646 100644 (file)
@@ -551,7 +551,11 @@ void Sys_Shared_Init(void);
 #define ISWHITESPACEORCONTROL(ch) ((signed char) (ch) <= (signed char) ' ')
 
 
+#ifdef PRVM_64
+#define FLOAT_IS_TRUE_FOR_INT(x) ((x) & 0x7FFFFFFFFFFFFFFF) // also match "negative zero" doubles of value 0x8000000000000000
+#else
 #define FLOAT_IS_TRUE_FOR_INT(x) ((x) & 0x7FFFFFFF) // also match "negative zero" floats of value 0x80000000
+#endif
 
 #endif