qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 1/3]use int64 when compare two time


From: Zhang, Yang Z
Subject: Re: [Qemu-devel] [PATCH 1/3]use int64 when compare two time
Date: Tue, 10 Jan 2012 05:18:07 +0000

> -----Original Message-----
> From: Andreas Färber [mailto:address@hidden
> Sent: Saturday, January 07, 2012 1:44 AM
> > use int64 when compare two time
> >
> > int32 only represent only 136 years when comparing two times based on
> second. It would be better to use int64.
> 
> int32 and int64 are softfloat types and should not be used here.
> 
> Do you have an actual use case that breaks with int / int32_t?
> 
The range of int is from (-2^31~2^31-1). This means it only can express 
(-2^31~2^31-1) seconds, about -68 years ~ +68 years compare with now. 
You can use "-rtc base=YYYY-MM-DD" to set the RTC start date and if (base - 
now) greater than 68 year, then you will see error message in windows guest and 
the date will roll back to 1944.

best regards
yang



reply via email to

[Prev in Thread] Current Thread [Next in Thread]