diff options
author | Teravus Ovares | 2008-12-20 01:20:40 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-12-20 01:20:40 +0000 |
commit | 4d26da545d8df85917b06cd603ffa6e92fd431e5 (patch) | |
tree | dec31f79c4a3d0736fd798442e090de7b951008f /OpenSim/Framework/OpenJpeg/fix.cs | |
parent | Revert OpenId until we can come to grips with the mono 2 requirement (diff) | |
download | opensim-SC-4d26da545d8df85917b06cd603ffa6e92fd431e5.zip opensim-SC-4d26da545d8df85917b06cd603ffa6e92fd431e5.tar.gz opensim-SC-4d26da545d8df85917b06cd603ffa6e92fd431e5.tar.bz2 opensim-SC-4d26da545d8df85917b06cd603ffa6e92fd431e5.tar.xz |
* ReCommit the OpenID patch with a few less dependencies.
* Removes all references to ASP.NET (System.Web.UI,*)
* Removes all references to System.Web.Mobile
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 | } | ||