共用方式為


log2 Function

Calculates the base-2 logarithm of the argument

inline float log2(
   float _X
) restrict(amp);
inline double log2(
   double _X
) restrict(amp);

Parameters

  • _X
    Floating-point value

Return Value

Returns the base-10 logarithm of the argument

Requirements

Header: amp_math.h

Namespace: Concurrency::precise_math

See Also

Reference

Concurrency::precise_math Namespace