Implement generic rint()
llvm-svn: 188130
This commit is contained in:
@@ -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>
|
||||
|
||||
6
libclc/generic/include/clc/math/rint.h
Normal file
6
libclc/generic/include/clc/math/rint.h
Normal 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>
|
||||
Reference in New Issue
Block a user