diff options
author | Eric Fode <ericfode@gmail.com> | 2012-07-13 13:58:13 -0400 |
---|---|---|
committer | Eric Fode <ericfode@gmail.com> | 2012-07-13 13:58:13 -0400 |
commit | 61236250c3cc1153b233deb0ce83c6cebbc24c64 (patch) | |
tree | 355b642e919a2f899844979d6130463cc652c8c3 /numpy/core/src/scalarmathmodule.c.src | |
parent | a77a7cd5ed6bc12772ba33c151f40fbe73e9d212 (diff) | |
download | numpy-61236250c3cc1153b233deb0ce83c6cebbc24c64.tar.gz |
fixed some style problems
Diffstat (limited to 'numpy/core/src/scalarmathmodule.c.src')
-rw-r--r-- | numpy/core/src/scalarmathmodule.c.src | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/numpy/core/src/scalarmathmodule.c.src b/numpy/core/src/scalarmathmodule.c.src index 8b66f7135..39ea874c7 100644 --- a/numpy/core/src/scalarmathmodule.c.src +++ b/numpy/core/src/scalarmathmodule.c.src @@ -499,19 +499,19 @@ half_ctype_remainder(npy_half a, npy_half b, npy_half *out) { */ static npy_@name@ (*_basic_@name@_pow)(@type@ a, @type@ b); -//called when ** is used (not performing properly) static void -@name@_ctype_power(@type@ a, @type@ b, @type@ *out) { - *out = _basic_@name@_pow(a, b); +@name@_ctype_power(@type@ a, @type@ b, @type@ *out) +{ + *out = _basic_@name@_pow(a, b); } /**end repeat**/ static void -half_ctype_power(npy_half a,npy_half b, npy_half *out) +half_ctype_power(npy_half a, npy_half b, npy_half *out) { - const npy_float af = npy_half_to_float(a); - const npy_float bf = npy_half_to_float(b); - const npy_float of = _basic_float_pow(af,bf); - *out = npy_float_to_half(of); + const npy_float af = npy_half_to_float(a); + const npy_float bf = npy_half_to_float(b); + const npy_float outf = _basic_float_pow(af,bf); + *out = npy_float_to_half(outf); } /**begin repeat |