summaryrefslogtreecommitdiff
path: root/indra/llimagej2coj/llimagej2coj.cpp
diff options
context:
space:
mode:
authorleyla_linden <none@none>2011-01-06 16:43:57 -0800
committerleyla_linden <none@none>2011-01-06 16:43:57 -0800
commit523722652259d37841be2ad4ad283df4887ad372 (patch)
tree3872f4235183254667bb0452ff5faf6554c7c69c /indra/llimagej2coj/llimagej2coj.cpp
parentf243f7e550b9dadd26d119bfeb4b215aa809997c (diff)
parentd8cf705d0189ec34b1202ee50ea3e5991cf4c90f (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()