Macros for Common Intrinsics

9/7/2007

All microprocessor families that support common intrinsic functions have a machine-dependent description of support in the header file, cmnintr.h. The machine-dependent description does the following:

  • Declares the functions with the correct prototype
  • Enables the intrinsic version
  • Defines macros that classify how the function is supported

You can use the intrinsic function unconditionally or you can use one of the macros to classify the intrinsic support in your CPU environment.

The following table shows descriptions of the macros for common intrinsic functions.

Macro Description

_INTRINSIC_IS_HELPER

This macro determines if an intrinsic function is instantiated through a call to the C Run-time Library (CRT).

_INTRINSIC_IS_INLINE

This macro tests to determine if the compiler can expand a specified intrinsic to one or more lines.

_INTRINSIC_IS_SAFE

This macro determines if a specified intrinsic function is instantiated independent of the OS.

_INTRINSIC_IS_SUPPORTED

This macro determines if a specified intrinsic function is supported.

See Also

Reference

Common Intrinsic Functions for Device Compilers