Example #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);
        }
Example #2
0
File: read.cs Project: 0xCM/arrows
 public static Bit readbit(double src, int pos)
 => BitMask.test(src, pos);
Example #3
0
File: read.cs Project: 0xCM/arrows
 public static Bit readbit(float src, int pos)
 => BitMask.test(src, pos);
Example #4
0
File: read.cs Project: 0xCM/arrows
 public static Bit readbit(ulong src, int pos)
 => BitMask.test(src, pos);
Example #5
0
File: read.cs Project: 0xCM/arrows
 public static Bit readbit(ushort src, int pos)
 => BitMask.test(src, pos);
Example #6
0
 public static bool TestBit(this long src, byte pos)
 => BitMask.test(src, pos);
Example #7
0
 public static bool TestBit(this ushort src, byte pos)
 => BitMask.test(src, pos);
Example #8
0
 char MakeBitChar(sbyte src, int pos)
 => BitMask.test(src, pos) ? '1' : '0';