Add native_recip(x) as ((1)/(x))

Signed-off-by: Aaron Watry <awatry@gmail.com>
Acked-by: Jan Vesely <jan.vesely@rutgers.edu>
llvm-svn: 313107
This commit is contained in:
Aaron Watry 2017-09-13 01:40:25 +00:00
parent d8328f13ac
commit e62f5fa64d
2 changed files with 2 additions and 0 deletions

View File

@ -106,6 +106,7 @@
#include <clc/math/native_log.h>
#include <clc/math/native_log2.h>
#include <clc/math/native_powr.h>
#include <clc/math/native_recip.h>
#include <clc/math/native_sin.h>
#include <clc/math/native_sqrt.h>
#include <clc/math/native_rsqrt.h>

View File

@ -0,0 +1 @@
#define native_recip(x) ((1) / (x))