Diff to cast int to double w/gcc

From: Thomas Dean (tomdean@ix.netcom.com)
Date: Mon Feb 15 1999 - 06:03:15 CST


*** stream_d.c~ Sat Aug 24 12:18:22 1996
--- stream_d.c Mon Feb 15 04:00:21 1999
***************
*** 94,100 ****
      printf(HLINE);
      printf("Array size = %d, Offset = %d\n" , N, OFFSET);
      printf("Total memory required = %.1f MB.\n",
! (3 * N * BytesPerWord) / 1048576.0);
      printf("Each test is run %d times, but only\n", NTIMES);
      printf("the *best* time for each is used.\n");
  
--- 94,100 ----
      printf(HLINE);
      printf("Array size = %d, Offset = %d\n" , N, OFFSET);
      printf("Total memory required = %.1f MB.\n",
! (double)(3 * N * BytesPerWord) / 1048576.0);
      printf("Each test is run %d times, but only\n", NTIMES);
      printf("the *best* time for each is used.\n");
  



This archive was generated by hypermail 2b29 : Tue Apr 18 2000 - 05:23:08 CDT