summaryrefslogtreecommitdiff
path: root/libclc/generic/lib/math/trunc.cl
blob: 930bf78d234c4e6e1d347a47eef8156a5c474f27 (plain)
1
2
3
4
5
6
7
8
9
10
#include <clc/clc.h>

// Map the llvm intrinsic to an OpenCL function.
#define __CLC_FUNCTION __clc_trunc
#define __CLC_INTRINSIC "llvm.trunc"
#include <clc/math/unary_intrin.inc>

#undef __CLC_FUNCTION
#define __CLC_FUNCTION trunc
#include "unary_builtin.inc"