These functions are all mapped to LLVM intrinsics. The clspv and spirv targets don't declare or define any of these CLC functions, and instead map these to their corresponding OpenCL symbols.
11 lines
261 B
Common Lisp
11 lines
261 B
Common Lisp
#include <clc/clc.h>
|
|
|
|
// Map the llvm intrinsic to an OpenCL function.
|
|
#define __CLC_FUNCTION __clc_round
|
|
#define __CLC_INTRINSIC "llvm.round"
|
|
#include <clc/math/unary_intrin.inc>
|
|
|
|
#undef __CLC_FUNCTION
|
|
#define __CLC_FUNCTION round
|
|
#include "unary_builtin.inc"
|