summaryrefslogtreecommitdiff
path: root/numpy/f2py
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2011-03-24 22:07:43 +0200
committerPearu Peterson <pearu.peterson@gmail.com>2011-03-24 22:09:41 +0200
commit2e96d91570637f9a118699798c6b496cb3c08a8a (patch)
treec208597537fa1fd96c8ae51f8d551eca53b91222 /numpy/f2py
parentc31bcc6a41752b26d986fc2698382df9683abdea (diff)
downloadnumpy-2e96d91570637f9a118699798c6b496cb3c08a8a.tar.gz
BUG: fixing selected_real_kind for PowerPC
Diffstat (limited to 'numpy/f2py')
-rwxr-xr-xnumpy/f2py/crackfortran.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/numpy/f2py/crackfortran.py b/numpy/f2py/crackfortran.py
index aa4c3bc0a..ad5f273e2 100755
--- a/numpy/f2py/crackfortran.py
+++ b/numpy/f2py/crackfortran.py
@@ -13,7 +13,7 @@ $Date: 2005/09/27 07:13:49 $
Pearu Peterson
"""
__version__ = "$Revision: 1.177 $"[10:-1]
-
+import platform
import __version__
f2py_version = __version__.version
@@ -1972,7 +1972,12 @@ def _selected_real_kind_func(p,r=0,radix=0):
#XXX: This should be processor dependent
if p<7: return 4
if p<16: return 8
- if p<19: return 10
+ if platform.machine().lower().startswith('power'):
+ if p<=20:
+ return 16
+ else:
+ if p<19:
+ return 10
return -1
def get_parameters(vars, global_params={}):