teak-llvm/libclc/amdgpu/lib/math/native_log.cl
Jan Vesely 9fedbb9d8e amdgpu/math: Don't use llvm instrinsic for native_log
AMDGPU targets don't have insturction for it,
so it'll be expanded to C * log2 anyway.

v2: use native_log2 instead of the more precise sw implementation
v3: move to amdgpu
v4: drop old AMD copyright

Reviewer: Aaron Watry
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
llvm-svn: 316587
2017-10-25 16:49:17 +00:00

6 lines
111 B
Common Lisp

#include <clc/clc.h>
#define __CLC_BODY <native_log.inc>
#define __FLOAT_ONLY
#include <clc/math/gentype.inc>