Ejemplo n.º 1
0
        long IPointSource <long> .Next()
        {
            var next     = (long)Points.Next(Int64.MaxValue);
            var negative = BitMask.test(next, 7);
            var result   = BitMask.test(next, 7) ? BitMask.enable(ref next, 63) : next;

            return(result);
        }
Ejemplo n.º 2
0
Archivo: read.cs Proyecto: 0xCM/arrows
 public static Bit readbit(double src, int pos)
 => BitMask.test(src, pos);
Ejemplo n.º 3
0
Archivo: read.cs Proyecto: 0xCM/arrows
 public static Bit readbit(float src, int pos)
 => BitMask.test(src, pos);
Ejemplo n.º 4
0
Archivo: read.cs Proyecto: 0xCM/arrows
 public static Bit readbit(ulong src, int pos)
 => BitMask.test(src, pos);
Ejemplo n.º 5
0
Archivo: read.cs Proyecto: 0xCM/arrows
 public static Bit readbit(ushort src, int pos)
 => BitMask.test(src, pos);
Ejemplo n.º 6
0
 public static bool TestBit(this long src, byte pos)
 => BitMask.test(src, pos);
Ejemplo n.º 7
0
 public static bool TestBit(this ushort src, byte pos)
 => BitMask.test(src, pos);
Ejemplo n.º 8
0
 char MakeBitChar(sbyte src, int pos)
 => BitMask.test(src, pos) ? '1' : '0';