diff options
| author | Jan Vesely <jan.vesely@rutgers.edu> | 2018-02-13 22:09:44 +0000 |
|---|---|---|
| committer | Jan Vesely <jan.vesely@rutgers.edu> | 2018-02-13 22:09:44 +0000 |
| commit | ed28c4458a873d496c66ed87a93e3e8d0da21e20 (patch) | |
| tree | 04c5bda6e0538dd05d082b26fbdf3f34773f8057 /libclc/amdgpu/lib/math | |
| parent | 86cbf56a4bc20a2e3f5a0c87492cf11fb837ea92 (diff) | |
| download | bcm5719-llvm-ed28c4458a873d496c66ed87a93e3e8d0da21e20.tar.gz bcm5719-llvm-ed28c4458a873d496c66ed87a93e3e8d0da21e20.zip | |
amdgpu/half_log2: Switch implementation to native_log2
Reviewer: Tom Stellard <tstellar@redhat.com>
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
llvm-svn: 325060
Diffstat (limited to 'libclc/amdgpu/lib/math')
| -rw-r--r-- | libclc/amdgpu/lib/math/half_log2.cl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libclc/amdgpu/lib/math/half_log2.cl b/libclc/amdgpu/lib/math/half_log2.cl new file mode 100644 index 00000000000..51645f422e8 --- /dev/null +++ b/libclc/amdgpu/lib/math/half_log2.cl @@ -0,0 +1,6 @@ +#include <clc/clc.h> + +#define __CLC_FUNC log2 +#define __FLOAT_ONLY +#define __CLC_BODY <half_native_unary.inc> +#include <clc/math/gentype.inc> |

