计算参数以 2 为底的对数
inline float log2(
float _X
) restrict(amp);
inline double log2(
double _X
) restrict(amp);
参数
- _X
浮点值
返回值
返回参数以 10为底的对数
要求
**头文件:**amp_math.h
**命名空间:**Concurrency::precise_math
计算参数以 2 为底的对数
inline float log2(
float _X
) restrict(amp);
inline double log2(
double _X
) restrict(amp);
返回参数以 10为底的对数
**头文件:**amp_math.h
**命名空间:**Concurrency::precise_math