From 8985c9c212c7f6e6555d48eeaa4c827e8b354ec9 Mon Sep 17 00:00:00 2001 From: Jan Vesely Date: Wed, 13 Mar 2019 07:13:22 +0000 Subject: [PATCH] hypot: Use binary_decl_tt.inc instead of custom inc file Reviewer: Aaron Watry Signed-off-by: Jan Vesely llvm-svn: 356022 --- libclc/generic/include/clc/math/hypot.h | 7 ++++++- libclc/generic/include/clc/math/hypot.inc | 1 - 2 files changed, 6 insertions(+), 2 deletions(-) delete mode 100644 libclc/generic/include/clc/math/hypot.inc 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 +#define __CLC_FUNCTION hypot +#define __CLC_BODY + #include + +#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);