all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Juanma Barranquero" <lekktu@gmail.com>
To: "Eli Zaretskii" <eliz@gnu.org>
Cc: emacs-devel@gnu.org
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	[thread overview]
Message-ID: <f7ccd24b0901030528l7401a7f8uf4d7ce85fdb07879@mail.gmail.com> (raw)
In-Reply-To: <u1vvko9mo.fsf@gnu.org>

On Sat, Jan 3, 2009 at 13:29, Eli Zaretskii <eliz@gnu.org> 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




  reply	other threads:[~2009-01-03 13:28 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-31 13:00 Optimized gcc 4.3.0 build on Windows returns 0 secs for all time values of system-process-attributes Juanma Barranquero
2008-12-31 17:29 ` dhruva
2008-12-31 19:12 ` Eli Zaretskii
2009-01-01  4:38   ` Juanma Barranquero
2009-01-01 12:57     ` dhruva
2009-01-01 13:08       ` dhruva
2009-01-01 13:16       ` Jason Rumney
2009-01-01 13:43         ` dhruva
2009-01-01 19:00           ` Eli Zaretskii
2009-01-02  4:59             ` dhruva
2009-01-02 14:33               ` Eli Zaretskii
2009-01-02 17:44                 ` Chetan Pandya
2009-01-01 18:03       ` Juanma Barranquero
2009-01-01 18:54     ` Eli Zaretskii
2009-01-03  2:27       ` Juanma Barranquero
2009-01-03 12:29         ` Eli Zaretskii
2009-01-03 13:28           ` Juanma Barranquero [this message]
2009-01-03 13:53             ` Juanma Barranquero
2009-01-03 15:33               ` Eli Zaretskii
2009-01-03 16:00                 ` Juanma Barranquero
2009-01-03 16:40                   ` Eli Zaretskii
2009-01-03 16:56                   ` Eli Zaretskii
2009-01-03 17:14                     ` Juanma Barranquero
2009-01-03 19:02                       ` Eli Zaretskii
2009-01-04  2:24                       ` Jason Rumney
2009-01-04  2:30                         ` Juanma Barranquero
2009-01-04  2:33                           ` Jason Rumney
2009-01-04  2:35                             ` Juanma Barranquero

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f7ccd24b0901030528l7401a7f8uf4d7ce85fdb07879@mail.gmail.com \
    --to=lekktu@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.