BN089-BS开发框架MVC4版/source20131023/Zephyr.Net/Zephyr.Utils/Document/Excel/NPOI/Util/Operator.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;
using System.Text;

namespace Zephyr.Utils.NPOI.Util
{
    public static class Operator
    {
        public static int UnsignedRightShift(int operand,int val)
        {
            if (operand > 0)
                return operand >> val;
            else
                return (int)(((uint)operand) >> val);
        }
        public static long UnsignedRightShift(long operand, int val)
        {
            if (operand > 0)
                return operand >> val;
            else
                return (long)(((ulong)operand) >> val);
        }
        public static short UnsignedRightShift(short operand, int val)
        {
            
            if (operand > 0)
                return (short)(operand >> val);
            else
                return (short)(((ushort)operand) >> val);
        }
        public static sbyte UnsignedRightShift(sbyte operand, int val)
        {

            if (operand > 0)
                return (sbyte)(operand >> val);
            else
                return (sbyte)(((byte)operand) >> val);
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。