]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Comment out a debug function; turn power2of into a macro
authorterencehill <piuntn@gmail.com>
Thu, 22 Jun 2017 12:16:18 +0000 (14:16 +0200)
committerterencehill <piuntn@gmail.com>
Thu, 22 Jun 2017 12:16:18 +0000 (14:16 +0200)
qcsrc/common/util.qh
qcsrc/lib/bits.qh
qcsrc/lib/math.qh

index 13c4c0900817d5f8298df91435c3dcfc9c6e2c28..547384cdd3f18be418c550a88a7d2d7f81045611 100644 (file)
@@ -105,9 +105,6 @@ void get_mi_min_max_texcoords(float mode);
 float almost_equals(float a, float b);
 float almost_in_bounds(float a, float b, float c);
 
-float power2of(float e);
-float log2of(float e);
-
 vector rgb_to_hsl(vector rgb);
 vector hsl_to_rgb(vector hsl);
 vector rgb_to_hsv(vector rgb);
index 266fe9c8cf3b304f05dbb78ab1f83be55fbe9eef..0e07cb43e69d8a1e849f4301b26a359101565087 100644 (file)
@@ -56,6 +56,7 @@ int randombits(int bits, int k, bool error_return)
        return r;
 }
 
+/*
 void randombit_test(int bits, int iter)
 {
        while (iter > 0)
@@ -64,6 +65,7 @@ void randombit_test(int bits, int iter)
                --iter;
        }
 }
+*/
 
 enum {
        OP_SET,
index 06994887c58ad6bbaeb7a46855052f300561279b..e5cf888472ef6d1fb3c2a531e606c5490243b466 100644 (file)
@@ -198,10 +198,7 @@ float ExponentialFalloff(float mindist, float maxdist, float halflifedist, float
        else return 1;
 }
 
-float power2of(float e)
-{
-       return (2 ** e);
-}
+#define power2of(e) (2 ** e)
 
 float log2of(float e)
 {