diff options
| author | Tom Stellard <thomas.stellard@amd.com> | 2015-03-23 16:20:24 +0000 |
|---|---|---|
| committer | Tom Stellard <thomas.stellard@amd.com> | 2015-03-23 16:20:24 +0000 |
| commit | 8d3a4e3af2428d6eb0f25d258ef6d7b2a89af8f2 (patch) | |
| tree | 1a2c482c27c502c6b84075834d0601e6e181ba9e /libclc/generic/lib/math/sin.cl | |
| parent | 9bacf0ff1ac121f592a5a426054d38d9c8de2b5c (diff) | |
| download | bcm5719-llvm-8d3a4e3af2428d6eb0f25d258ef6d7b2a89af8f2.tar.gz bcm5719-llvm-8d3a4e3af2428d6eb0f25d258ef6d7b2a89af8f2.zip | |
Add __clc_ prefix to functions in sincos_helpers.cl
This will help avoid naming conflicts with functions defined in
kernels linking with libclc.
llvm-svn: 232960
Diffstat (limited to 'libclc/generic/lib/math/sin.cl')
| -rw-r--r-- | libclc/generic/lib/math/sin.cl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libclc/generic/lib/math/sin.cl b/libclc/generic/lib/math/sin.cl index ffc4dd1aa03..50684e4b849 100644 --- a/libclc/generic/lib/math/sin.cl +++ b/libclc/generic/lib/math/sin.cl @@ -33,10 +33,10 @@ _CLC_OVERLOAD _CLC_DEF float sin(float x) float dx = as_float(ax); float r0, r1; - int regn = argReductionS(&r0, &r1, dx); + int regn = __clc_argReductionS(&r0, &r1, dx); - float ss = sinf_piby4(r0, r1); - float cc = cosf_piby4(r0, r1); + float ss = __clc_sinf_piby4(r0, r1); + float cc = __clc_cosf_piby4(r0, r1); float s = (regn & 1) != 0 ? cc : ss; s = as_float(as_int(s) ^ ((regn > 1) << 31) ^ (ix ^ ax)); |

