[nexuiz-commits] r8229 - trunk/data/qcsrc/common
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sat Nov 7 14:45:52 EST 2009
Author: div0
Date: 2009-11-07 14:45:52 -0500 (Sat, 07 Nov 2009)
New Revision: 8229
Modified:
trunk/data/qcsrc/common/mathlib.qc
trunk/data/qcsrc/common/mathlib.qh
Log:
comment fixes
Modified: trunk/data/qcsrc/common/mathlib.qc
===================================================================
--- trunk/data/qcsrc/common/mathlib.qc 2009-11-07 19:44:31 UTC (rev 8228)
+++ trunk/data/qcsrc/common/mathlib.qc 2009-11-07 19:45:52 UTC (rev 8229)
@@ -165,8 +165,6 @@
{
return sqrt(x*x + y*y);
}
-//float pow(float x, float y);
-//float sqrt(float x, float y);
float erf(float x)
{
@@ -211,14 +209,10 @@
return exp(v_x) * v_y;
}
-//float ceil(float x);
-//float floor(float x);
float nearbyint(float x)
{
return rint(x);
}
-//float rint(float x);
-//float round(float x);
float trunc(float x)
{
return (x>=0) ? floor(x) : ceil(x);
Modified: trunk/data/qcsrc/common/mathlib.qh
===================================================================
--- trunk/data/qcsrc/common/mathlib.qh 2009-11-07 19:44:31 UTC (rev 8228)
+++ trunk/data/qcsrc/common/mathlib.qh 2009-11-07 19:45:52 UTC (rev 8229)
@@ -22,6 +22,9 @@
// <math.h>
+// The commented-out functions need no implementation because DarkPlaces offers
+// them as builtins. They are listed here anyway for completeness sake.
+
#define int float
#define FP_NAN 0
More information about the nexuiz-commits
mailing list