[pypy-svn] pypy default: Merge jit-longlong-2: on 32bit, use a longlong instead of a float

arigo commits-noreply at bitbucket.org
Sat Feb 12 19:24:57 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r41855:9398f031b3f8
Date: 2011-02-12 19:23 +0100
http://bitbucket.org/pypy/pypy/changeset/9398f031b3f8/

Log:	Merge jit-longlong-2: on 32bit, use a longlong instead of a float in
	the 'value' field of BoxFloat. This fixes some issues that appeared
	to be caused by the cast from longlongs to floats and back. Indeed,
	when cast to float and back, we may (if unlucky) get a different
	value. More precisely, the longlong values 0x7ff0xxxxxxxxxxxxx
	encodes a signalling NaN, which get converted somewhere to a quiet
	NaN --- and we end up with 0x7ff8xxxxxxxxxxxxx.



More information about the Pypy-commit mailing list