summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2012-09-10 16:55:00 +0000
committerTom Stellard <thomas.stellard@amd.com>2012-12-10 20:19:20 +0000
commit647a1aad7d46fd5adf9d8eec412daf332ecfed49 (patch)
tree3976871433114e51888b472ef35ce5b0c1deaf32
parentf07a899158d1f38b231e9a073a6ff0053b04016f (diff)
Add rounding mode suffixes to conversion declarations
-rw-r--r--generic/include/clc/convert.h6
-rw-r--r--generic/lib/convert.cl6
2 files changed, 10 insertions, 2 deletions
diff --git a/generic/include/clc/convert.h b/generic/include/clc/convert.h
index a7ae94a..74dd5b0 100644
--- a/generic/include/clc/convert.h
+++ b/generic/include/clc/convert.h
@@ -75,7 +75,11 @@ _CLC_CONVERT_DECL(float, float, _sat)
_CLC_VECTOR_CONVERT_FROM(double, SUFFIX)
#else
#define _CLC_VECTOR_CONVERT_TO(SUFFIX) \
- _CLC_VECTOR_CONVERT_TO1(SUFFIX)
+ _CLC_VECTOR_CONVERT_TO1(SUFFIX) \
+ _CLC_VECTOR_CONVERT_TO1(SUFFIX##_rte) \
+ _CLC_VECTOR_CONVERT_TO1(SUFFIX##_rtz) \
+ _CLC_VECTOR_CONVERT_TO1(SUFFIX##_rtp) \
+ _CLC_VECTOR_CONVERT_TO1(SUFFIX##_rtn)
#endif
_CLC_VECTOR_CONVERT_TO()
diff --git a/generic/lib/convert.cl b/generic/lib/convert.cl
index d5a6f31..412ac2c 100644
--- a/generic/lib/convert.cl
+++ b/generic/lib/convert.cl
@@ -115,7 +115,11 @@ CONVERT_ID(float, float, _sat)
CONVERT_VECTORIZE_FROM(double, SUFFIX)
#else
#define CONVERT_VECTORIZE_TO(SUFFIX) \
- CONVERT_VECTORIZE_TO1(SUFFIX)
+ CONVERT_VECTORIZE_TO1(SUFFIX) \
+ CONVERT_VECTORIZE_TO1(SUFFIX##_rte) \
+ CONVERT_VECTORIZE_TO1(SUFFIX##_rtz) \
+ CONVERT_VECTORIZE_TO1(SUFFIX##_rtp) \
+ CONVERT_VECTORIZE_TO1(SUFFIX##_rtn)
#endif
CONVERT_VECTORIZE_TO()