Implement generic rint()

llvm-svn: 188130
This commit is contained in:
Tom Stellard 2013-08-10 03:40:33 +00:00
parent da920eab42
commit abbfd2bde0
2 changed files with 7 additions and 0 deletions

View File

@ -46,6 +46,7 @@
#include <clc/math/log2.h>
#include <clc/math/mad.h>
#include <clc/math/pow.h>
#include <clc/math/rint.h>
#include <clc/math/sin.h>
#include <clc/math/sqrt.h>
#include <clc/math/native_cos.h>

View File

@ -0,0 +1,6 @@
#undef rint
#define rint __clc_rint
#define __CLC_FUNCTION __clc_rint
#define __CLC_INTRINSIC "llvm.rint"
#include <clc/math/unary_intrin.inc>