blob: 66590687c34220414678728e10d7c715966805d0 [file]
#ifndef __CLC_MATH_CLC_CEIL_H__
#define __CLC_MATH_CLC_CEIL_H__
#if defined(CLC_CLSPV) || defined(CLC_SPIRV)
// clspv and spir-v targets provide their own OpenCL-compatible ceil
#define __clc_ceil ceil
#else
// Map the function to an LLVM intrinsic
#define __CLC_FUNCTION __clc_ceil
#define __CLC_INTRINSIC "llvm.ceil"
#include <clc/math/unary_intrin.inc>
#undef __CLC_INTRINSIC
#undef __CLC_FUNCTION
#endif
#endif // __CLC_MATH_CLC_CEIL_H__