diff options
author | Aaron Watry <awatry@gmail.com> | 2014-06-16 19:53:59 +0000 |
---|---|---|
committer | Aaron Watry <awatry@gmail.com> | 2014-06-16 19:53:59 +0000 |
commit | 6af2969a61f8c7a61abc777ce32c3f23dae4758c (patch) | |
tree | d95e35b6a6653c7056c3f88f15578aca9179a5df /libclc/generic/include/clc | |
parent | f7f79d2a9405ea7ff5d9eac0a6d4783c8708c448 (diff) | |
download | bcm5719-llvm-6af2969a61f8c7a61abc777ce32c3f23dae4758c.tar.gz bcm5719-llvm-6af2969a61f8c7a61abc777ce32c3f23dae4758c.zip |
math: Implement mix builtin
Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Tom Stellard <tom@stellard.net>
llvm-svn: 211047
Diffstat (limited to 'libclc/generic/include/clc')
-rw-r--r-- | libclc/generic/include/clc/clc.h | 1 | ||||
-rw-r--r-- | libclc/generic/include/clc/math/mix.h | 2 | ||||
-rw-r--r-- | libclc/generic/include/clc/math/mix.inc | 5 |
3 files changed, 8 insertions, 0 deletions
diff --git a/libclc/generic/include/clc/clc.h b/libclc/generic/include/clc/clc.h index 416d431b2cc..e0cae98e70d 100644 --- a/libclc/generic/include/clc/clc.h +++ b/libclc/generic/include/clc/clc.h @@ -45,6 +45,7 @@ #include <clc/math/log.h> #include <clc/math/log2.h> #include <clc/math/mad.h> +#include <clc/math/mix.h> #include <clc/math/nextafter.h> #include <clc/math/pow.h> #include <clc/math/rint.h> diff --git a/libclc/generic/include/clc/math/mix.h b/libclc/generic/include/clc/math/mix.h new file mode 100644 index 00000000000..c3c95c1f0c4 --- /dev/null +++ b/libclc/generic/include/clc/math/mix.h @@ -0,0 +1,2 @@ +#define __CLC_BODY <clc/math/mix.inc> +#include <clc/math/gentype.inc> diff --git a/libclc/generic/include/clc/math/mix.inc b/libclc/generic/include/clc/math/mix.inc new file mode 100644 index 00000000000..52cb10ad902 --- /dev/null +++ b/libclc/generic/include/clc/math/mix.inc @@ -0,0 +1,5 @@ +_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE mix(__CLC_GENTYPE a, __CLC_GENTYPE b, __CLC_GENTYPE c); + +#ifndef __CLC_SCALAR +_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE mix(__CLC_GENTYPE a, __CLC_GENTYPE b, __CLC_SCALAR_GENTYPE c); +#endif |