[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Optimized gcc 4.3.0 build on Windows returns 0 secs for all time val
From: |
Juanma Barranquero |
Subject: |
Re: Optimized gcc 4.3.0 build on Windows returns 0 secs for all time values of system-process-attributes |
Date: |
Sat, 3 Jan 2009 14:28:35 +0100 |
On Sat, Jan 3, 2009 at 13:29, Eli Zaretskii <address@hidden> wrote:
> That's what that code did before I wrote system-process-attributes,
> and I wanted to reuse existing code. A `long double' type has 64 bits
> of mantissa on an IA-32 machine, so no loss of precision seemed to be
> involved.
Yes, I understand that. Still it seems ugly to divide a whole number
by ten doing X * 0.1...
> Could you please show the values of ft_kernel, stime_sec, and
> stime_usec after the last of the above 3 lines, namely after
>
> stime_sec = tem1 * 0.000001L;
>
> ?
Attached. I've used snprintf, with %Lg for tem1, %I64d for ft_kernel
and %ld for stime_u?sec.
> By the way, it sounds like, if you use snprintf, you should be able to
> have long double values printed correctly as well, because snprintf
> comes from libmingwex library, not from MS runtime.
Great, thanks.
Juanma
tem1 = 484375.000000
ft_kernel = 584843750
stime_usec = 484375
stime_sec = 0
tem1 = 31250.000000
ft_kernel = 312500
stime_usec = 31250
stime_sec = 0
tem1 = 218750.000000
ft_kernel = 122187500
stime_usec = 218750
stime_sec = 0
tem1 = 328125.000000
ft_kernel = 13281250
stime_usec = 328125
stime_sec = 0
tem1 = 296875.000000
ft_kernel = 72968750
stime_usec = 296875
stime_sec = 0
tem1 = 156250.000000
ft_kernel = 11562500
stime_usec = 156250
stime_sec = 0
tem1 = 171875.000000
ft_kernel = 1718750
stime_usec = 171875
stime_sec = 0
tem1 = 93750.000000
ft_kernel = 10937500
stime_usec = 93750
stime_sec = 0
tem1 = 843750.000000
ft_kernel = 78437500
stime_usec = 843750
stime_sec = 0
tem1 = 31250.000000
ft_kernel = 312500
stime_usec = 31250
stime_sec = 0
tem1 = 203125.000000
ft_kernel = 2031250
stime_usec = 203125
stime_sec = 0
tem1 = 62500.000000
ft_kernel = 625000
stime_usec = 62500
stime_sec = 0
tem1 = 62500.000000
ft_kernel = 625000
stime_usec = 62500
stime_sec = 0
tem1 = 62500.000000
ft_kernel = 625000
stime_usec = 62500
stime_sec = 0
tem1 = 0.000000
ft_kernel = 0
stime_usec = 0
stime_sec = 0
tem1 = 703125.000000
ft_kernel = 47031250
stime_usec = 703125
stime_sec = 0
tem1 = 968750.000000
ft_kernel = 49687500
stime_usec = 968750
stime_sec = 0
tem1 = 93750.000000
ft_kernel = 20937500
stime_usec = 93750
stime_sec = 0
tem1 = 531250.000000
ft_kernel = 115312500
stime_usec = 531250
stime_sec = 0
tem1 = 468750.000000
ft_kernel = 4687500
stime_usec = 468750
stime_sec = 0
tem1 = 93750.000000
ft_kernel = 937500
stime_usec = 93750
stime_sec = 0
tem1 = 140625.000000
ft_kernel = 1406250
stime_usec = 140625
stime_sec = 0
tem1 = 93750.000000
ft_kernel = 937500
stime_usec = 93750
stime_sec = 0
tem1 = 31250.000000
ft_kernel = 312500
stime_usec = 31250
stime_sec = 0
tem1 = 312500.000000
ft_kernel = 3125000
stime_usec = 312500
stime_sec = 0
tem1 = 687500.000000
ft_kernel = 26875000
stime_usec = 687500
stime_sec = 0
tem1 = 93750.000000
ft_kernel = 937500
stime_usec = 93750
stime_sec = 0
tem1 = 140625.000000
ft_kernel = 1406250
stime_usec = 140625
stime_sec = 0
tem1 = 46875.000000
ft_kernel = 468750
stime_usec = 46875
stime_sec = 0
tem1 = 46875.000000
ft_kernel = 468750
stime_usec = 46875
stime_sec = 0
tem1 = 296875.000000
ft_kernel = 2968750
stime_usec = 296875
stime_sec = 0
tem1 = 578125.000000
ft_kernel = 615781250
stime_usec = 578125
stime_sec = 0
tem1 = 281250.000000
ft_kernel = 32812500
stime_usec = 281250
stime_sec = 0
tem1 = 531250.000000
ft_kernel = 315312500
stime_usec = 531250
stime_sec = 0
tem1 = 781250.000000
ft_kernel = 317812500
stime_usec = 781250
stime_sec = 0
tem1 = 281250.000000
ft_kernel = 332812500
stime_usec = 281250
stime_sec = 0
tem1 = 31250.000000
ft_kernel = 312500
stime_usec = 31250
stime_sec = 0
tem1 = 109375.000000
ft_kernel = 1093750
stime_usec = 109375
stime_sec = 0
tem1 = 46875.000000
ft_kernel = 468750
stime_usec = 46875
stime_sec = 0
tem1 = 906250.000000
ft_kernel = 99062500
stime_usec = 906250
stime_sec = 0
tem1 = 500000.000000
ft_kernel = 5000000
stime_usec = 500000
stime_sec = 0
tem1 = 218750.000000
ft_kernel = 12187500
stime_usec = 218750
stime_sec = 0
tem1 = 218750.000000
ft_kernel = 12187500
stime_usec = 218750
stime_sec = 0
- Re: Optimized gcc 4.3.0 build on Windows returns 0 secs for all time values of system-process-attributes, (continued)
Re: Optimized gcc 4.3.0 build on Windows returns 0 secs for all time values of system-process-attributes, Juanma Barranquero, 2009/01/01
Re: Optimized gcc 4.3.0 build on Windows returns 0 secs for all time values of system-process-attributes, Eli Zaretskii, 2009/01/01
- Re: Optimized gcc 4.3.0 build on Windows returns 0 secs for all time values of system-process-attributes, Juanma Barranquero, 2009/01/02
- Re: Optimized gcc 4.3.0 build on Windows returns 0 secs for all time values of system-process-attributes, Eli Zaretskii, 2009/01/03
- Re: Optimized gcc 4.3.0 build on Windows returns 0 secs for all time values of system-process-attributes,
Juanma Barranquero <=
- Re: Optimized gcc 4.3.0 build on Windows returns 0 secs for all time values of system-process-attributes, Juanma Barranquero, 2009/01/03
- Re: Optimized gcc 4.3.0 build on Windows returns 0 secs for all time values of system-process-attributes, Eli Zaretskii, 2009/01/03
- Re: Optimized gcc 4.3.0 build on Windows returns 0 secs for all time values of system-process-attributes, Juanma Barranquero, 2009/01/03
- Re: Optimized gcc 4.3.0 build on Windows returns 0 secs for all time values of system-process-attributes, Eli Zaretskii, 2009/01/03
- Re: Optimized gcc 4.3.0 build on Windows returns 0 secs for all time values of system-process-attributes, Eli Zaretskii, 2009/01/03
- Re: Optimized gcc 4.3.0 build on Windows returns 0 secs for all time values of system-process-attributes, Juanma Barranquero, 2009/01/03
- Re: Optimized gcc 4.3.0 build on Windows returns 0 secs for all time values of system-process-attributes, Eli Zaretskii, 2009/01/03
- Re: Optimized gcc 4.3.0 build on Windows returns 0 secs for all time values of system-process-attributes, Jason Rumney, 2009/01/03
- Re: Optimized gcc 4.3.0 build on Windows returns 0 secs for all time values of system-process-attributes, Juanma Barranquero, 2009/01/03
- Re: Optimized gcc 4.3.0 build on Windows returns 0 secs for all time values of system-process-attributes, Jason Rumney, 2009/01/03