[pypy-commit] pypy win32-cleanup2: Backed out changeset: da56cef5777d, pypy is OK problem is with underlying cpython
mattip
noreply at buildbot.pypy.org
Sun Apr 8 13:08:55 CEST 2012
Author: Matti Picus <matti.picus at gmail.com>
Branch: win32-cleanup2
Changeset: r54243:0d96f6934f8f
Date: 2012-04-08 10:15 +0300
http://bitbucket.org/pypy/pypy/changeset/0d96f6934f8f/
Log: Backed out changeset: da56cef5777d, pypy is OK problem is with
underlying cpython
diff --git a/pypy/translator/c/primitive.py b/pypy/translator/c/primitive.py
--- a/pypy/translator/c/primitive.py
+++ b/pypy/translator/c/primitive.py
@@ -11,7 +11,6 @@
GCHeaderOffset, GCREF, AddressAsInt
from pypy.rpython.lltypesystem.llarena import RoundedUpForAllocation
from pypy.translator.c.support import cdecl, barebonearray
-from pypy.translator.platform import platform as target_platform
# ____________________________________________________________
#
@@ -99,19 +98,11 @@
else:
return '%dLL' % value
-if target_platform.name == 'msvc':
- def is_positive_nan(value):
- # Microsoft decided that NAN should have the sign bit set,
- # so the values are reversed!
- import struct
- c = struct.pack("!d", value)[0]
- return {'\x7f': False, '\xff': True}[c]
-else:
- def is_positive_nan(value):
- # bah. we don't have math.copysign() if we're running Python 2.5
- import struct
- c = struct.pack("!d", value)[0]
- return {'\x7f': True, '\xff': False}[c]
+def is_positive_nan(value):
+ # bah. we don't have math.copysign() if we're running Python 2.5
+ import struct
+ c = struct.pack("!d", value)[0]
+ return {'\x7f': True, '\xff': False}[c]
def name_float(value, db):
if isinf(value):
More information about the pypy-commit
mailing list