lib/C/iec_std_lib.h
changeset 1005 e27c2af708ad
parent 905 31224f8cac32
child 1021 21a97cdb317d
equal deleted inserted replaced
1004:c25446920923 1005:e27c2af708ad
   234 
   234 
   235 
   235 
   236 
   236 
   237 
   237 
   238 /* NOTE: The following function was turned into a macro, so it could be used to initialize the initial value of TOD (TIME_OF_DAY) variables */
   238 /* NOTE: The following function was turned into a macro, so it could be used to initialize the initial value of TOD (TIME_OF_DAY) variables */
   239 /* NOTE: many (but not all) of the same comments made regarding __time_to_timespec() are also valid here, so go and read those comments too!
   239 /* NOTE: many (but not all) of the same comments made regarding __time_to_timespec() are also valid here, so go and read those comments too!*/
   240 /*
   240 /*
   241 static inline IEC_TIMESPEC __tod_to_timespec(double seconds, double minutes, double hours) {
   241 static inline IEC_TIMESPEC __tod_to_timespec(double seconds, double minutes, double hours) {
   242   IEC_TIMESPEC ts;
   242   IEC_TIMESPEC ts;
   243 
   243 
   244   long double total_sec = (hours*60 + minutes)*60 + seconds;
   244   long double total_sec = (hours*60 + minutes)*60 + seconds;