Share via


rcp Function

Computes the reciprocal of the specified argument by using a fast approximation.

inline float rcp(
   float _X
) restrict(amp);

inline double rcp(
   double _X
) restrict(amp);

Parameters

  • _X
    The value for which to compute the reciprocal.

Return Value

The reciprocal of the specified argument.

Requirements

Header: amp.h

Namespace: Concurrency::direct3d

See Also

Reference

Concurrency::direct3d Namespace