comparison lib/Support/TimeValue.cpp @ 77:54457678186b

LLVM 3.6
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Mon, 08 Sep 2014 22:06:00 +0900
parents 95c75e76d11b
children 7d135dc70f03
comparison
equal deleted inserted replaced
34:e874dbf0ad9d 77:54457678186b
19 19
20 const TimeValue::SecondsType 20 const TimeValue::SecondsType
21 TimeValue::PosixZeroTimeSeconds = -946684800; 21 TimeValue::PosixZeroTimeSeconds = -946684800;
22 const TimeValue::SecondsType 22 const TimeValue::SecondsType
23 TimeValue::Win32ZeroTimeSeconds = -12591158400ULL; 23 TimeValue::Win32ZeroTimeSeconds = -12591158400ULL;
24
25 const TimeValue TimeValue::MinTime = TimeValue ( INT64_MIN,0 );
26 const TimeValue TimeValue::MaxTime = TimeValue ( INT64_MAX,0 );
27 const TimeValue TimeValue::ZeroTime = TimeValue ( 0,0 );
28 const TimeValue TimeValue::PosixZeroTime = TimeValue ( PosixZeroTimeSeconds,0 );
29 const TimeValue TimeValue::Win32ZeroTime = TimeValue ( Win32ZeroTimeSeconds,0 );
30 24
31 void 25 void
32 TimeValue::normalize( void ) { 26 TimeValue::normalize( void ) {
33 if ( nanos_ >= NANOSECONDS_PER_SECOND ) { 27 if ( nanos_ >= NANOSECONDS_PER_SECOND ) {
34 do { 28 do {
51 } 45 }
52 } 46 }
53 47
54 } 48 }
55 49
56 /// Include the platform specific portion of TimeValue class 50 /// Include the platform-specific portion of TimeValue class
57 #ifdef LLVM_ON_UNIX 51 #ifdef LLVM_ON_UNIX
58 #include "Unix/TimeValue.inc" 52 #include "Unix/TimeValue.inc"
59 #endif 53 #endif
60 #ifdef LLVM_ON_WIN32 54 #ifdef LLVM_ON_WIN32
61 #include "Windows/TimeValue.inc" 55 #include "Windows/TimeValue.inc"