summaryrefslogtreecommitdiff
path: root/generic/lib/integer/abs_diff.inc
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-06-14 10:12:50 -0700
committerTom Stellard <thomas.stellard@amd.com>2013-06-26 17:43:30 -0700
commita44a4d32ff12bf6826be528eca13259d839b78d6 (patch)
tree9e8225c9b064521adc19bb35d18ff9c59f658e8c /generic/lib/integer/abs_diff.inc
parent3a4d22ab84ce975bd98f9961ccba8ed8665c3c5f (diff)
Add __CLC_ prefix to all macro definitions in headers
libclc was defining and undefing GENTYPE and several other macros with common names in its header files. This was preventing applications from defining macros with identical names as command line arguments to the compiler, because the definitions in the header files were masking the macros defined as compiler arguements. Reviewed-by: Aaron Watry <awatry@gmail.com>
Diffstat (limited to 'generic/lib/integer/abs_diff.inc')
-rw-r--r--generic/lib/integer/abs_diff.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/lib/integer/abs_diff.inc b/generic/lib/integer/abs_diff.inc
index 6ad57ee..f39c3ff 100644
--- a/generic/lib/integer/abs_diff.inc
+++ b/generic/lib/integer/abs_diff.inc
@@ -1,3 +1,3 @@
-_CLC_OVERLOAD _CLC_DEF UGENTYPE abs_diff(GENTYPE x, GENTYPE y) {
- return __builtin_astype((GENTYPE)(x > y ? x-y : y-x), UGENTYPE);
+_CLC_OVERLOAD _CLC_DEF __CLC_U_GENTYPE abs_diff(__CLC_GENTYPE x, __CLC_GENTYPE y) {
+ return __builtin_astype((__CLC_GENTYPE)(x > y ? x-y : y-x), __CLC_U_GENTYPE);
}