all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: michael@cadilhac.name (Michaël Cadilhac)
To: emacs-devel@gnu.org
Subject: Re: calc: E command hangs Emacs.
Date: Mon, 01 Oct 2007 11:17:53 +0200	[thread overview]
Message-ID: <87sl4vurb2.fsf@cadilhac.name> (raw)
In-Reply-To: 87ir60blrf.fsf@cadilhac.name


[-- Attachment #1.1: Type: text/plain, Size: 960 bytes --]

michael@cadilhac.name (Michaël Cadilhac) writes:

> We can then consider installing the following patch which fixes an
> overflow of expt (namely that (expt 10.0 256) yields 0) on some system
                                      Read -256.
> that implement pow(3) without an ERANGE error (e.g., Cygwin).
>
>
> --- floatfns.c	26 Jul 2007 07:27:51 +0200	1.94
> +++ floatfns.c	21 Sep 2007 11:22:16 +0200	

> +  IN_FLOAT2 (f3 = pow (f1, f2), "expt", arg1, arg2);
> +  /* Check for overflow in the result.  */
> +  if (f1 != 0.0 && f3 == 0.0)
> +    range_error ("expt", arg1);
> +  return make_float (f3);

Installed.

-- 
 |   Michaël `Micha' Cadilhac       |  Perhaps we should start               |
 |   http://michael.cadilhac.name   |     making protest releases            |
 |   JID/MSN:                       |   before doing a fall release.         |
 `----  michael.cadilhac@gmail.com  |          -- David Kastrup         -  --'

[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]

[-- Attachment #2: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

      reply	other threads:[~2007-10-01  9:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-18  1:14 calc: E command hangs Emacs yu jie
2007-09-18 14:16 ` Michaël Cadilhac
     [not found]   ` <42b562540709181923t54c3876of89a0c3322b459cc@mail.gmail.com>
2007-09-19 15:01     ` Michaël Cadilhac
     [not found]       ` <42b562540709191805tdbc3da4xf0f8d0cc2456cada@mail.gmail.com>
     [not found]         ` <876425n5gg.fsf@cadilhac.name>
     [not found]           ` <42b562540709201741s28d34896h9c6a69b8db676794@mail.gmail.com>
2007-09-21  9:25             ` Michaël Cadilhac
     [not found]               ` <E1IYgkh-000069-ME@fencepost.gnu.org>
2007-09-21 11:49                 ` Possible bug in `expt'. (was: calc: E command hangs Emacs.) Michaël Cadilhac
     [not found]               ` <42b562540709232026s650e98ebgbeb780881565c0fa@mail.gmail.com>
2007-09-24  6:49                 ` calc: E command hangs Emacs Michaël Cadilhac
2007-10-01  9:17                   ` Michaël Cadilhac [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

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

  git send-email \
    --in-reply-to=87sl4vurb2.fsf@cadilhac.name \
    --to=michael@cadilhac.name \
    --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.