Files
clang-p2996/libclc/generic/lib/math/fmod.cl
Jan Vesely 8f64c3d842 Implement fmod
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Tom Stellard <tom@stellard.net>
Reviewed-by: Aaron Watry <awatry@gmail.com>
llvm-svn: 219087
2014-10-05 20:24:52 +00:00

13 lines
267 B
Common Lisp

#include <clc/clc.h>
#include "../clcmacro.h"
_CLC_DEFINE_BINARY_BUILTIN(float, fmod, __builtin_fmodf, float, float)
#ifdef cl_khr_fp64
#pragma OPENCL EXTENSION cl_khr_fp64 : enable
_CLC_DEFINE_BINARY_BUILTIN(double, fmod, __builtin_fmod, double, double)
#endif