summaryrefslogtreecommitdiffstats
path: root/libclc/generic/lib/math/round.cl
blob: 17c72c985fef97d7c40b1e4220006e9b07a290aa (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_round
#define __CLC_INTRINSIC "llvm.round"
#include "math/unary_intrin.inc"

#undef __CLC_FUNCTION
#define __CLC_FUNCTION round
#include "unary_builtin.inc"
OpenPOWER on IntegriCloud