使用快速近似算法计算指定参数的倒数。
inline float rcp(
float _X
) restrict(amp);
inline double rcp(
double _X
) restrict(amp);
参数
- _X
计算倒数的值。
返回值
指定参数的倒数。
要求
**标头:**amp.h
**命名空间:**Concurrency::direct3d
使用快速近似算法计算指定参数的倒数。
inline float rcp(
float _X
) restrict(amp);
inline double rcp(
double _X
) restrict(amp);
指定参数的倒数。
**标头:**amp.h
**命名空间:**Concurrency::direct3d