共用方式為


fmax Function (fast_math)

Determine the maximum numeric value of the arguments

inline float max(
   float _X,
   float _Y
) restrict(amp);

Parameters

  • _X
    Integer value

  • _Y
    Integer value

Return Value

Return the maximum numeric value of the arguments

Requirements

Header: amp_math.h

Namespace: Concurrency::fast_math

See Also

Reference

Concurrency::fast_math Namespace