Share via


_INTRINSIC_IS_SUPPORTED

9/7/2007

This macro determines if an intrinsic function is instantiated through a call to the Microsoft C Run-Time Library.

Syntax

_INTRINSIC_IS_SUPPORTED(arg)

Parameters

  • Arg
    [in] The name of the intrinsic function of interest.

Return Value

A nonzero return value indicates that intrinsic named by arg is instantiated with a call to the CRT.

Example

   //
   // The following example shows how to use the
   // _INTRINSIC_IS_SUPPORTED macro to determine 
   // support for the __trap intrinsic function.
   //
#include <cmnintrin.h>
#if INTRINSIC_IS_SUPPORTED(__trap)
  __trap(1);  // __trap IS SUPPORTED
#else
   //  __trap IS NOT SUPPORTED
#endif
  //

See Also

Reference

Common Intrinsic Functions for Device Compilers

Other Resources