diff options
Diffstat (limited to 'OpenSim/Framework/OpenJpeg/fix.cs')
-rw-r--r-- | OpenSim/Framework/OpenJpeg/fix.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim/Framework/OpenJpeg/fix.cs b/OpenSim/Framework/OpenJpeg/fix.cs new file mode 100644 index 0000000..76d3159 --- /dev/null +++ b/OpenSim/Framework/OpenJpeg/fix.cs | |||
@@ -0,0 +1,16 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | |||
5 | namespace OpenSim.Framework.OpenJpeg | ||
6 | { | ||
7 | public static class fix | ||
8 | { | ||
9 | public static int fix_mul(int a, int b) | ||
10 | { | ||
11 | long temp = (long)a * (long)b; | ||
12 | temp += temp & 4096; | ||
13 | return (int)(temp >> 13); | ||
14 | } | ||
15 | } | ||
16 | } | ||