예제 #1
0
 static uint IBinaryInteger <uint> .LeadingZeroCount(uint value)
 => (uint)BitOperations.LeadingZeroCount(value);
예제 #2
0
파일: Int32.cs 프로젝트: mateoatr/runtime
 static int IBinaryInteger <int> .LeadingZeroCount(int value)
 => BitOperations.LeadingZeroCount((uint)value);
예제 #3
0
 /// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" />
 public static uint LeadingZeroCount(uint value) => (uint)BitOperations.LeadingZeroCount(value);
예제 #4
0
 /// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" />
 public static long LeadingZeroCount(long value) => BitOperations.LeadingZeroCount((ulong)value);
예제 #5
0
 static ushort IBinaryInteger <ushort> .LeadingZeroCount(ushort value)
 => (ushort)(BitOperations.LeadingZeroCount(value) - 16);
예제 #6
0
 /// <inheritdoc cref="IBinaryInteger{TSelf}.GetShortestBitLength()" />
 int IBinaryInteger <uint> .GetShortestBitLength() => (sizeof(uint) * 8) - BitOperations.LeadingZeroCount(m_value);
예제 #7
0
파일: Byte.cs 프로젝트: vitek-karas/runtime
        //
        // IBinaryInteger
        //

        /// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" />
        public static byte LeadingZeroCount(byte value) => (byte)(BitOperations.LeadingZeroCount(value) - 24);
예제 #8
0
 static byte IBinaryInteger <byte> .LeadingZeroCount(byte value)
 => (byte)(BitOperations.LeadingZeroCount(value) - 24);
예제 #9
0
 /// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" />
 public static short LeadingZeroCount(short value) => (short)(BitOperations.LeadingZeroCount((ushort)value) - 16);
예제 #10
0
파일: Int32.cs 프로젝트: Maximys/runtime
 /// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" />
 public static int LeadingZeroCount(int value) => BitOperations.LeadingZeroCount((uint)value);
예제 #11
0
 static ulong IBinaryInteger <ulong> .LeadingZeroCount(ulong value)
 => (ulong)BitOperations.LeadingZeroCount(value);
예제 #12
0
파일: Int64.cs 프로젝트: PRIMETSS/runtime
 static long IBinaryInteger <long> .LeadingZeroCount(long value)
 => BitOperations.LeadingZeroCount((ulong)value);
예제 #13
0
 /// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" />
 public static ulong LeadingZeroCount(ulong value) => (ulong)BitOperations.LeadingZeroCount(value);
예제 #14
0
 static sbyte IBinaryInteger <sbyte> .LeadingZeroCount(sbyte value)
 => (sbyte)(BitOperations.LeadingZeroCount((byte)value) - 24);
예제 #15
0
 static short IBinaryInteger <short> .LeadingZeroCount(short value)
 => (short)(BitOperations.LeadingZeroCount((ushort)value) - 16);