summaryrefslogtreecommitdiff
path: root/indra/llimagej2coj/llimagej2coj.cpp
diff options
context:
space:
mode:
authorprep <prep@lindenlab.com>2011-01-05 16:12:15 -0500
committerprep <prep@lindenlab.com>2011-01-05 16:12:15 -0500
commitc9f3a5574e223bec95b4ec374fd164ba9a486c2a (patch)
treeedbd6574b4133488f82e872bb86d3aacda4af216 /indra/llimagej2coj/llimagej2coj.cpp
parent5b09da5079d576678eb5d66a5518044d1b22664f (diff)
parent7c7527b6727a6070fd7679ea28e4e2692452bf27 (diff)
merge
Diffstat (limited to 'indra/llimagej2coj/llimagej2coj.cpp')
-rw-r--r--indra/llimagej2coj/llimagej2coj.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/llimagej2coj/llimagej2coj.cpp b/indra/llimagej2coj/llimagej2coj.cpp
index 95e0997d5b..13b12c0928 100644
--- a/indra/llimagej2coj/llimagej2coj.cpp
+++ b/indra/llimagej2coj/llimagej2coj.cpp
@@ -90,6 +90,12 @@ void info_callback(const char* msg, void*)
lldebugs << "LLImageJ2COJ: " << chomp(msg) << llendl;
}
+// Divide a by 2 to the power of b and round upwards
+int ceildivpow2(int a, int b)
+{
+ return (a + (1 << b) - 1) >> b;
+}
+
LLImageJ2COJ::LLImageJ2COJ()
: LLImageJ2CImpl()