unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Peter Whaite <emacs@whaite.ca>
Cc: emacs-devel@gnu.org
Subject: Re: division of integers by floats
Date: Wed, 12 May 2004 11:00:46 -0400	[thread overview]
Message-ID: <200405121500.i4CF0kGF004339@brains.moreideas.ca> (raw)
In-Reply-To: Message from Piet van Oostrum <piet@cs.uu.nl>  of "08 May 2004 12:28:12 +0200." <wzvfj7z003.fsf@ordesa.cs.uu.nl>

Piet van Oostrum <piet@cs.uu.nl> wrote:
> This can even be combined as:
> 
> +  int argnum;
> +  for (argnum = 2; argnum < nargs; argnum++)
> +    if (FLOATP (args[argnum]))
> +      return float_arith_driver (0, 0, Adiv, nargs, args);
> +  return arith_driver (Adiv, nargs, args);

Thats a nice optimization.

-- 
Peter Whaite (http://whaite.ca)

      parent reply	other threads:[~2004-05-12 15:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-05 20:21 division of integers by floats Richard Stallman
2004-05-06 21:17 ` Peter Whaite
2004-05-08  1:21   ` Richard Stallman
2004-05-08 10:28     ` Piet van Oostrum
2004-05-09  0:49       ` Juanma Barranquero
2004-05-12 15:00       ` Peter Whaite [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=200405121500.i4CF0kGF004339@brains.moreideas.ca \
    --to=emacs@whaite.ca \
    --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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).