diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2013-01-31 17:09:18 -0500 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2013-01-31 17:09:18 -0500 |
commit | c3acb9cd5e9010a4f802d3612a391d4a7e7e0604 (patch) | |
tree | 99e305c513459b0d604a15283d85a77584f35be5 /generic/lib/math/binary_impl.inc | |
parent | b93257cc6afed59364b0d3b9c3d08ef38638c689 (diff) |
XXX: fmax workingfmax
Diffstat (limited to 'generic/lib/math/binary_impl.inc')
-rw-r--r-- | generic/lib/math/binary_impl.inc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/generic/lib/math/binary_impl.inc b/generic/lib/math/binary_impl.inc new file mode 100644 index 0000000..b6c6612 --- /dev/null +++ b/generic/lib/math/binary_impl.inc @@ -0,0 +1,18 @@ + +#ifndef SCALAR + +_CLC_OVERLOAD _CLC_DEF GENTYPE __clc_fmax(GENTYPE x, GENTYPE y) { + return FUNCTION_IMPL(x, y); +} + +#endif + +_CLC_OVERLOAD _CLC_DEF GENTYPE __clc_fmax(GENTYPE x, double y) { + GENTYPE vec_y = (GENTYPE) (y); + return FUNCTION_IMPL(x, vec_y); +} + +_CLC_OVERLOAD _CLC_DEF GENTYPE __clc_fmax(GENTYPE x, float y) { + GENTYPE vec_y = (GENTYPE) (y); + return FUNCTION_IMPL(x, vec_y); +} |