diff options
author | David Cournapeau <cournape@gmail.com> | 2009-11-04 07:54:58 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2009-11-04 07:54:58 +0000 |
commit | f17f47572787086c8f119be91a78ab1135331b37 (patch) | |
tree | 6888cefc8c3c568936769d25dd1a8e187e818d3a /numpy/core/setup_common.py | |
parent | 60c2d9866b20686fca3465eded92705b8c29e900 (diff) | |
download | numpy-f17f47572787086c8f119be91a78ab1135331b37.tar.gz |
Check for C99 complex types.
Diffstat (limited to 'numpy/core/setup_common.py')
-rw-r--r-- | numpy/core/setup_common.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/numpy/core/setup_common.py b/numpy/core/setup_common.py index f009ef472..d42705fff 100644 --- a/numpy/core/setup_common.py +++ b/numpy/core/setup_common.py @@ -105,8 +105,18 @@ C99_FUNCS = ["sin", "cos", "tan", "sinh", "cosh", "tanh", "fabs", "floor", C99_FUNCS_SINGLE = [f + 'f' for f in C99_FUNCS] C99_FUNCS_EXTENDED = [f + 'l' for f in C99_FUNCS] +C99_COMPLEX_TYPES = ['complex double', 'complex float', 'complex long double'] + C99_COMPLEX_FUNCS = ['creal', 'cimag', 'cabs', 'carg', 'cexp', 'csqrt', 'clog', 'ccos', 'csin', 'cpow'] def fname2def(name): return "HAVE_%s" % name.upper() + +def sym2def(symbol): + define = symbol.replace(' ', '') + return define.upper() + +def type2def(symbol): + define = symbol.replace(' ', '_') + return define.upper() |