You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
469 B
24 lines
469 B
4 months ago
|
#include <clc/clc.h>
|
||
|
|
||
|
#include "../../../generic/lib/clcmacro.h"
|
||
|
|
||
|
_CLC_OVERLOAD _CLC_DEF float rsqrt(float x)
|
||
|
{
|
||
|
return __builtin_r600_recipsqrt_ieeef(x);
|
||
|
}
|
||
|
|
||
|
_CLC_UNARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, float, rsqrt, float);
|
||
|
|
||
|
#ifdef cl_khr_fp64
|
||
|
|
||
|
#pragma OPENCL EXTENSION cl_khr_fp64 : enable
|
||
|
|
||
|
_CLC_OVERLOAD _CLC_DEF double rsqrt(double x)
|
||
|
{
|
||
|
return __builtin_r600_recipsqrt_ieee(x);
|
||
|
}
|
||
|
|
||
|
_CLC_UNARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, double, rsqrt, double);
|
||
|
|
||
|
#endif
|