From 6b074c60f766cd9f4b2207a95e6ececfa0dd8f54 Mon Sep 17 00:00:00 2001 From: terencehill Date: Thu, 22 Jun 2017 14:16:18 +0200 Subject: [PATCH] Comment out a debug function; turn power2of into a macro --- qcsrc/common/util.qh | 3 --- qcsrc/lib/bits.qh | 2 ++ qcsrc/lib/math.qh | 5 +---- 3 files changed, 3 insertions(+), 7 deletions(-) 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) { -- 2.39.2