From 28816d56e1a6afca5eebedc6beca05572cd648e0 Mon Sep 17 00:00:00 2001 From: zachjweiner Date: Sun, 19 Jan 2020 16:06:42 -0600 Subject: [PATCH] Fix copysign mangling --- loopy/target/c/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loopy/target/c/__init__.py b/loopy/target/c/__init__.py index 6e3602eda..01d26dd82 100644 --- a/loopy/target/c/__init__.py +++ b/loopy/target/c/__init__.py @@ -436,7 +436,7 @@ def c_math_mangler(target, name, arg_dtypes, modify_name=True): arg_dtypes=arg_dtypes) # binary functions - if (name in ["fmax", "fmin"] + if (name in ["fmax", "fmin", "copysign"] and len(arg_dtypes) == 2): dtype = np.find_common_type( -- GitLab