[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / libclc / r600 / lib / math / rsqrt.cl
blob37a8037902c28e02097772f3a0931b95eebed3e7
1 #include <clc/clc.h>
3 #include "../../../generic/lib/clcmacro.h"
5 _CLC_OVERLOAD _CLC_DEF float rsqrt(float x)
7 return __builtin_r600_recipsqrt_ieeef(x);
10 _CLC_UNARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, float, rsqrt, float);
12 #ifdef cl_khr_fp64
14 #pragma OPENCL EXTENSION cl_khr_fp64 : enable
16 _CLC_OVERLOAD _CLC_DEF double rsqrt(double x)
18 return __builtin_r600_recipsqrt_ieee(x);
21 _CLC_UNARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, double, rsqrt, double);
23 #endif