From 4d26da545d8df85917b06cd603ffa6e92fd431e5 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Sat, 20 Dec 2008 01:20:40 +0000 Subject: * 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 --- OpenSim/Framework/OpenJpeg/fix.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 OpenSim/Framework/OpenJpeg/fix.cs (limited to 'OpenSim/Framework/OpenJpeg/fix.cs') 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 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace OpenSim.Framework.OpenJpeg +{ + public static class fix + { + public static int fix_mul(int a, int b) + { + long temp = (long)a * (long)b; + temp += temp & 4096; + return (int)(temp >> 13); + } + } +} -- cgit v1.1