summaryrefslogtreecommitdiffstats
path: root/libclc/generic/lib/math/half_recip.cl
blob: c0b5c00c5e330928ee3648076f2c84d677869d94 (plain)
1
2
3
4
5
6
7
8
9
10
#include <clc/clc.h>

#define recip(x) (1.0f/x)

#define __CLC_FUNC recip
#define __CLC_BODY <half_unary.inc>
#define __FLOAT_ONLY
#include <clc/math/gentype.inc>

#undef recip
OpenPOWER on IntegriCloud