Files
clang-p2996/libclc/generic/lib/math/fmax.cl
Tom Stellard 509b3b2104 Implement fmax() and fmin() builtins
llvm-svn: 184987
2013-06-26 18:20:25 +00:00

12 lines
239 B
Common Lisp

#include <clc/clc.h>
#ifdef cl_khr_fp64
#pragma OPENCL EXTENSION cl_khr_fp64 : enable
#endif
#define FUNCTION __clc_fmax
#define FUNCTION_IMPL(x, y) ((x) < (y) ? (y) : (x))
#define BODY <binary_impl.inc>
#include <clc/math/gentype.inc>