From ff00c005cc9c2871a622c141e1fbe77296bd6061 Mon Sep 17 00:00:00 2001 From: Ragnvald Maartmann-Moe IV Date: Mon, 9 Feb 2004 05:16:55 +0000 Subject: [PATCH] See above. --- klik/math.qc | 53 ---------------------------------------------------- 1 file changed, 53 deletions(-) delete mode 100644 klik/math.qc diff --git a/klik/math.qc b/klik/math.qc deleted file mode 100644 index e0f0cd5..0000000 --- a/klik/math.qc +++ /dev/null @@ -1,53 +0,0 @@ -#include "math.qh" -#include "builtins.qh" - -/* Ugh. QuakeC doesn't include these ops. */ -float (float num, float bits) -shl = -{ - if (bits >= 16) { - num *= 65536; - bits -= 16; - } - if (bits >= 8) { - num *= 256; - bits -= 8; - } - if (bits >= 4) { - num *= 16; - bits -= 4; - } - if (bits >= 2) { - num *= 4; - bits -= 2; - } - if (bits >= 1) { - num *= 2; - } - return num; -}; - -float (float num, float bits) -shr = -{ - if (bits >= 16) { - num /= 65536; - bits -= 16; - } - if (bits >= 8) { - num /= 256; - bits -= 8; - } - if (bits >= 4) { - num /= 16; - bits -= 4; - } - if (bits >= 2) { - num /= 4; - bits -= 2; - } - if (bits >= 1) { - num /= 2; - } - return floor (num); -};