Projects
Browse Source     Search     Timeline     Wiki

Changeset 23472

Show
Ignore:
Timestamp:
12/19/07 14:29:16 (12 months ago)
Author:
zarzycki@…
Message:

Small optimization.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/launchd/src/launchd_runtime.c

    r23471 r23472  
    113113static void do_file_init(void) __attribute__((constructor)); 
    114114static mach_timebase_info_data_t tbi; 
     115static double tbi_float_val; 
    115116 
    116117static const int sigigns[] = { SIGHUP, SIGINT, SIGPIPE, SIGALRM, SIGTERM, 
     
    15841585                } else { 
    15851586                        double d = o; 
    1586                         d *= tbi.numer; 
    1587                         d /= tbi.denom; 
     1587                        d *= tbi_float_val; 
    15881588                        o = d; 
    15891589                } 
     
    15971597{ 
    15981598        launchd_assert(mach_timebase_info(&tbi) == 0); 
    1599 } 
    1600  
     1599        tbi_float_val = tbi.numer; 
     1600        tbi_float_val /= tbi.denom; 
     1601} 
     1602