1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 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); } } }