diff options
| author | Jan Vesely <jan.vesely@rutgers.edu> | 2018-01-17 21:22:06 +0000 |
|---|---|---|
| committer | Jan Vesely <jan.vesely@rutgers.edu> | 2018-01-17 21:22:06 +0000 |
| commit | c45ec604f593fcb03d770f4398142d2446017f68 (patch) | |
| tree | d4b757e80af9be4d3f95e5dbc07c81e38d41ebfe /libclc/generic/include | |
| parent | 5efc8fe321d04a8645d2d6beb904f9eed0b94c98 (diff) | |
| download | bcm5719-llvm-c45ec604f593fcb03d770f4398142d2446017f68.tar.gz bcm5719-llvm-c45ec604f593fcb03d770f4398142d2446017f68.zip | |
powr: Port from amd_builtins
Passes piglit on turks and carrizo
fp64 passes cts on carrizo
v2: fix formatting
check fp32 denormal support at runtime
Reviewer: Jeroen Ketema <j.ketema@xs4all.nl>
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
llvm-svn: 322762
Diffstat (limited to 'libclc/generic/include')
| -rw-r--r-- | libclc/generic/include/clc/clc.h | 1 | ||||
| -rw-r--r-- | libclc/generic/include/clc/math/powr.h | 5 | ||||
| -rw-r--r-- | libclc/generic/include/math/clc_powr.h | 5 |
3 files changed, 11 insertions, 0 deletions
diff --git a/libclc/generic/include/clc/clc.h b/libclc/generic/include/clc/clc.h index 465ee14296b..227c9e39b79 100644 --- a/libclc/generic/include/clc/clc.h +++ b/libclc/generic/include/clc/clc.h @@ -89,6 +89,7 @@ #include <clc/math/nextafter.h> #include <clc/math/pow.h> #include <clc/math/pown.h> +#include <clc/math/powr.h> #include <clc/math/rint.h> #include <clc/math/round.h> #include <clc/math/sin.h> diff --git a/libclc/generic/include/clc/math/powr.h b/libclc/generic/include/clc/math/powr.h new file mode 100644 index 00000000000..12cfbf4492e --- /dev/null +++ b/libclc/generic/include/clc/math/powr.h @@ -0,0 +1,5 @@ +#define __CLC_FUNCTION powr +#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/math/clc_powr.h b/libclc/generic/include/math/clc_powr.h new file mode 100644 index 00000000000..34e4bae3c3f --- /dev/null +++ b/libclc/generic/include/math/clc_powr.h @@ -0,0 +1,5 @@ +#define __CLC_FUNCTION __clc_powr +#define __CLC_BODY <clc/math/binary_decl_tt.inc> +#include <clc/math/gentype.inc> +#undef __CLC_BODY +#undef __CLC_FUNCTION |

