Permalink
Browse files

BUG: fixing selected_real_kind for PowerPC

  • Loading branch information...
pearu committed Mar 24, 2011
1 parent c31bcc6 commit 2e96d91570637f9a118699798c6b496cb3c08a8a
Showing with 7 additions and 2 deletions.
  1. +7 −2 numpy/f2py/crackfortran.py
@@ -13,7 +13,7 @@
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={}):

0 comments on commit 2e96d91

Please sign in to comment.