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

2012-01-11 Thread Marcelo Tosatti
On Fri, Jan 06, 2012 at 01:20:55PM +, Peter Maydell wrote: > On 6 January 2012 07:37, Zhang, Yang Z wrote: > > 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", "int32_t" and

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

2012-01-09 Thread Zhang, Yang Z
> -Original Message- > From: Andreas Färber [mailto:afaer...@suse.de] > 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

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

2012-01-06 Thread Andreas Färber
Am 06.01.2012 08:37, schrieb Zhang, Yang Z: > 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

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

2012-01-06 Thread Peter Maydell
On 6 January 2012 07:37, Zhang, Yang Z wrote: > 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", "int32_t" and "'int' which happens to be 32 bit" are all different types; your changelog m

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

2012-01-05 Thread Zhang, Yang Z
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. Signed-off-by: Yang Zhang diff --git a/qemu-common.h b/qemu-common.h index b2de015..c14f506 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -116,8 +1