From: terencehill Date: Thu, 22 Jun 2017 12:16:18 +0000 (+0200) Subject: Comment out a debug function; turn power2of into a macro X-Git-Tag: xonotic-v0.8.5~2711 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6b074c60f766cd9f4b2207a95e6ececfa0dd8f54;p=xonotic%2Fxonotic-data.pk3dir.git Comment out a debug function; turn power2of into a macro --- diff --git a/qcsrc/common/util.qh b/qcsrc/common/util.qh index 13c4c0900..547384cdd 100644 --- a/qcsrc/common/util.qh +++ b/qcsrc/common/util.qh @@ -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); diff --git a/qcsrc/lib/bits.qh b/qcsrc/lib/bits.qh index 266fe9c8c..0e07cb43e 100644 --- a/qcsrc/lib/bits.qh +++ b/qcsrc/lib/bits.qh @@ -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, diff --git a/qcsrc/lib/math.qh b/qcsrc/lib/math.qh index 06994887c..e5cf88847 100644 --- a/qcsrc/lib/math.qh +++ b/qcsrc/lib/math.qh @@ -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) {