diff options
author | Jan Vesely <jan.vesely@rutgers.edu> | 2019-03-13 07:13:22 +0000 |
---|---|---|
committer | Jan Vesely <jan.vesely@rutgers.edu> | 2019-03-13 07:13:22 +0000 |
commit | 8985c9c212c7f6e6555d48eeaa4c827e8b354ec9 (patch) | |
tree | eaf8122deab2b31c4a2e6fd7595f1b133f93dc67 /libclc | |
parent | 5b136ca1258b2b77768670d661212bb9269cd67e (diff) | |
download | llvm-8985c9c212c7f6e6555d48eeaa4c827e8b354ec9.tar.gz |
hypot: Use binary_decl_tt.inc instead of custom inc file
Reviewer: Aaron Watry
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
llvm-svn: 356022
Diffstat (limited to 'libclc')
-rw-r--r-- | libclc/generic/include/clc/math/hypot.h | 7 | ||||
-rw-r--r-- | libclc/generic/include/clc/math/hypot.inc | 1 |
2 files changed, 6 insertions, 2 deletions
diff --git a/libclc/generic/include/clc/math/hypot.h b/libclc/generic/include/clc/math/hypot.h index c00eb4532461..9ec1d21e8142 100644 --- a/libclc/generic/include/clc/math/hypot.h +++ b/libclc/generic/include/clc/math/hypot.h @@ -1,2 +1,7 @@ -#define __CLC_BODY <clc/math/hypot.inc> +#define __CLC_FUNCTION hypot +#define __CLC_BODY <clc/math/binary_decl_tt.inc> + #include <clc/math/gentype.inc> + +#undef __CLC_BODY +#undef __CLC_FUNCTION diff --git a/libclc/generic/include/clc/math/hypot.inc b/libclc/generic/include/clc/math/hypot.inc deleted file mode 100644 index 08b46058b0aa..000000000000 --- a/libclc/generic/include/clc/math/hypot.inc +++ /dev/null @@ -1 +0,0 @@ -_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE hypot(__CLC_GENTYPE x, __CLC_GENTYPE y); |