aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/OpenJpeg/fix.cs
blob: 76d315904cc5e9177f4fd9fe432d45e3f065df3b (plain)
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);
        }
    }
}