Author: Brian Kearns <[email protected]>
Branch: 
Changeset: r67410:f694acf8afd7
Date: 2013-10-16 05:20 -0400
http://bitbucket.org/pypy/pypy/changeset/f694acf8afd7/

Log:    try to enable numpypy long double

diff --git a/pypy/module/micronumpy/interp_boxes.py 
b/pypy/module/micronumpy/interp_boxes.py
--- a/pypy/module/micronumpy/interp_boxes.py
+++ b/pypy/module/micronumpy/interp_boxes.py
@@ -20,14 +20,11 @@
 MIXIN_32 = (int_typedef,) if LONG_BIT == 32 else ()
 MIXIN_64 = (int_typedef,) if LONG_BIT == 64 else ()
 
-#long_double_size = rffi.sizeof_c_type('long double', ignore_errors=True)
-#import os
-#if long_double_size == 8 and os.name == 'nt':
-#    # this is a lie, or maybe a wish, MS fakes longdouble math with double
-#    long_double_size = 12
-
-# hardcode to 8 for now (simulate using normal double) until long double works
-long_double_size = 8
+long_double_size = rffi.sizeof_c_type('long double', ignore_errors=True)
+import os
+if long_double_size == 8 and os.name == 'nt':
+    # this is a lie, or maybe a wish, MS fakes longdouble math with double
+    long_double_size = 12
 
 
 def new_dtype_getter(name):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to