double mb = Conversions.pagesToMBytes(pages);
double mb = (double) (pages<<LOG_BYTES_IN_PAGE) / (double) (1<<20);
  private static void printPages(int pages, int mode) {    double mb = Conversions.pagesToMBytes(pages);    switch (mode) {    case PAGES: Log.write(pages); Log.write(" pgs"); break;     case MB:    Log.write(mb); Log.write(" Mb"); break;    case PAGES_MB: Log.write(pages); Log.write(" pgs ("); Log.write(mb); Log.write(" Mb)"); break;    case MB_PAGES: Log.write(mb); Log.write(" Mb ("); Log.write(pages); Log.write(" pgs)"); break;      default: Assert.fail("writePages passed illegal printing mode");    }  }