[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-bug-tracker] bug#5916: closed (XFLOAT_DATA and signed zeroes)

From: GNU bug Tracking System
Subject: [Emacs-bug-tracker] bug#5916: closed (XFLOAT_DATA and signed zeroes)
Date: Sun, 16 May 2010 22:36:03 +0000

Your message dated Sun, 16 May 2010 16:12:31 -0400
with message-id <address@hidden>
and subject line Re: bug#5916: XFLOAT_DATA and signed zeroes
has caused the GNU bug report #5916,
regarding XFLOAT_DATA and signed zeroes
to be marked as done.

(If you believe you have received this mail in error, please contact

5916: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5916
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: XFLOAT_DATA and signed zeroes Date: Sat, 10 Apr 2010 01:39:23 +0200 User-agent: Mutt/1.5.20-6072-vl-r35499 (2010-04-03)

I don't know whether there's really a bug (I haven't tested the
trunk), but someone pointed a suspicious macro[*]. The change
(on 2009-08-17) is here:


It is said:

  lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.

However, adding 0 has another side effect on floats: the 0 is
converted into +0.0 (due to the addition with a double), so that
a -0.0 is transformed into a +0.0.

Could someone try the following?

  (/ 1.0 (- 0.0))

The correct result should be -1.0e+INF (negative infinity).


Vincent Lefèvre <address@hidden> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)

--- End Message ---
--- Begin Message --- Subject: Re: bug#5916: XFLOAT_DATA and signed zeroes Date: Sun, 16 May 2010 16:12:31 -0400
Should be fixed on trunk by yesterday's checkin:

>> revno: 100306 [merge]
>> committer: Ken Raeburn <address@hidden>
>> branch nick: trunk
>> timestamp: Sat 2010-05-15 17:21:30 -0400
> [...]
>>  * src/lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (bug#5916)

--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]