summaryrefslogtreecommitdiff
path: root/indra/llimagej2coj/llimagej2coj.cpp
diff options
context:
space:
mode:
authorcallum <none@none>2011-01-05 15:52:43 -0800
committercallum <none@none>2011-01-05 15:52:43 -0800
commitb9ca6c553cf158c5b485947f8b560228a196c1d7 (patch)
treedf710eb467a1c0fbfb5d7906232f23a36f6fc7c1 /indra/llimagej2coj/llimagej2coj.cpp
parented3ea14984e322462ed466805e47b29a6f658279 (diff)
parentd5a0c56bf5d933b7cee072cbc1851a626e672ded (diff)
Merge with viewer-development
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()