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