Пример #1
0
 public virtual void TestPerfSelectAllBitsBroad()
 {
     for (int j = 0; j < 100000; j++) // 1000000 for real perf test
     {
         for (int i = 0; i < 64; i++)
         {
             Assert.AreEqual(i, BroadWord.Select(unchecked ((long)0xFFFFFFFFFFFFFFFFL), i + 1));
         }
     }
 }
Пример #2
0
 private void TstSelect(long x, int r, int exp)
 {
     Assert.AreEqual(exp, BroadWord.SelectNaive(x, r), "selectNaive(" + x + "," + r + ")");
     Assert.AreEqual(exp, BroadWord.Select(x, r), "select(" + x + "," + r + ")");
 }