summaryrefslogtreecommitdiff
path: root/numpy/core/src
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/src')
-rw-r--r--numpy/core/src/scalarmathmodule.c.src16
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