예제 #1
0
파일: ZMM.cs 프로젝트: 0xCM/arrows
 public                     Bit this[BitPos r]
 {
     [MethodImpl(Inline)]
     get
     {
         return(0);
     }
 }
예제 #2
0
 public ref readonly BitIndex Index(BitPos pos)
 => ref Data.Index(pos);
예제 #3
0
 public static uint rank(ulong src, BitPos pos)
 => pop(range(src, 0, pos));
예제 #4
0
 public static uint rank(ushort src, BitPos pos)
 => pop(range(src, 0, pos));
예제 #5
0
 public static long range(long src, BitPos i0, BitPos i1)
 => (long)range((ulong)src, i0, i1);
예제 #6
0
파일: BitMap.cs 프로젝트: 0xCM/arrows
 public ref readonly uint Cell(BitPos pos)
 => ref Index(pos).CellIndex;
예제 #7
0
 public static short range(short src, BitPos i0, BitPos i1)
 => (short)range((ushort)src, i0, i1);
예제 #8
0
파일: BitBlock.cs 프로젝트: 0xCM/arrows
 public static ref byte Bit(ref BitBlock <T> src, BitPos i)
 => ref Unsafe.Add(ref Unsafe.As <BitBlock <T>, byte>(ref src), i);
예제 #9
0
 public static byte range(byte src, BitPos i0, BitPos i1)
 => (byte)Bmi1.BitFieldExtract(src, i0, (byte)(i1 - i0));
예제 #10
0
 public static ushort range(ushort src, BitPos i0, BitPos i1)
 => (ushort)Bmi1.BitFieldExtract(src, i0, (byte)(i1 - i0));
예제 #11
0
 public static sbyte range(sbyte src, BitPos i0, BitPos i1)
 => (sbyte)range((byte)src, i0, i1);
예제 #12
0
 public static double range(double src, BitPos i0, BitPos i1)
 => BitConverter.Int64BitsToDouble(range(src.ToBits(), i0, i1));
예제 #13
0
 public static float range(float src, BitPos i0, BitPos i1)
 => BitConverter.Int32BitsToSingle(range(src.ToBits(), i0, i1));
예제 #14
0
파일: BitBlock16.cs 프로젝트: 0xCM/arrows
 public static ref byte uint8(ref BitBlock16 src, BitPos i)
 => ref Unsafe.Add(ref Unsafe.As <BitBlock16, byte>(ref src), i);
예제 #15
0
 public static uint range(uint src, BitPos i0, BitPos i1)
 => Bmi1.BitFieldExtract(src, (byte)i0, (byte)(i1 - i0));
예제 #16
0
파일: read.x.cs 프로젝트: 0xCM/arrows
 public static Span <byte> ReadBits(this byte src, BitPos i0, BitPos i1)
 => range(in src, i0, i1);
예제 #17
0
 public static int range(int src, BitPos i0, BitPos i1)
 => (int)range((uint)src, i0, i1);
예제 #18
0
파일: BitMap.cs 프로젝트: 0xCM/arrows
 public ref readonly BitIndex Index(BitPos pos)
 => ref Indices[pos];
예제 #19
0
 public static ulong range(ulong src, BitPos i0, BitPos i1)
 => Bmi1.X64.BitFieldExtract(src, (byte)i0, (byte)(i1 - i0));
예제 #20
0
파일: BitMap.cs 프로젝트: 0xCM/arrows
 public ref readonly byte Offset(BitPos pos)
 => ref Index(pos).CellOffset;
예제 #21
0
 public static uint rank(sbyte src, BitPos pos)
 => pop(range(src, 0, pos));
예제 #22
0
 public ref readonly BitIndex this[BitPos pos]
 {
     [MethodImpl(Inline)]
     get => ref Data.Index(pos);
예제 #23
0
파일: EnumBit.cs 프로젝트: 0xCM/arrows
 public EnumBit(BitPos Pos, string Name, Bit Value)
 {
     this.Pos   = Pos;
     this.Name  = Name;
     this.Value = Value;
 }