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
This commit is contained in:
Jan Vesely 2018-02-13 22:09:44 +00:00
parent 86cbf56a4b
commit ed28c4458a
2 changed files with 7 additions and 0 deletions

View File

@ -6,6 +6,7 @@ math/half_exp10.cl
math/half_exp2.cl
math/half_log.cl
math/half_log10.cl
math/half_log2.cl
math/half_rsqrt.cl
math/half_sqrt.cl
math/nextafter.cl

View File

@ -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>