Ignore:
Timestamp:
Apr 17, 2009, 12:35:37 AM (15 years ago)
Author:
rosiere
Message:

1) Fix bug with previous commit
2) Add test libc
3) Change Dhrystone

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Softwares/Dhrystone/src/c/dtime.c

    r112 r114  
    6565
    6666#ifndef MHZ
    67 #define MHZ (1000000)
     67#define MHZ (1000000.0)
    6868#endif //!MHZ
    6969
     
    7272#endif //!FRQ
    7373
    74 #ifndef DOUBLE
    75 #define double
    76 #endif
    77 
    7874DOUBLE dtime()
    7975{
    8076  DOUBLE q;
    8177
    82 /*   q = (DOUBLE)(my_times())/(DOUBLE)FRQ; */
     78#ifdef HAVE_DOUBLE
     79  q = (DOUBLE)(my_times())/(DOUBLE)FRQ;
     80#else
    8381  q = (DOUBLE)(my_times());
    84  
     82#endif
     83
    8584  return (q);
    8685}
Note: See TracChangeset for help on using the changeset viewer.