|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
Intrinsic Functions for Device Compilers
The device compilers support a wide variety of intrinsic functions. Some intrinsic functions are supported by all device compilers. In addition, the compilers for each microprocessor family support additional intrinsic functions.
Common intrinsic functions perform simple and useful operations that are difficult to express concisely in C or C++. They are called common because all device compilers support them.
Using intrinsic functions to access assembly instructions instead of inline assembly results in code that can still be fully optimized by the compiler. All of the intrinsic functions are permanent. Using them in #pragma function generates an error message during compilation.
You can enable these functions by including Cmnintrin.h.
In This Section
- Common Intrinsic Functions for Device Compilers
- Provides reference information about intrinsic functions supported for device compilers.
- Intrinsic Forms of CRT Functions
- Provides reference information about CRT functions that are supported as intrinsic functions by the device compilers.
- Unsupported Intrinsic Functions
- Lists the intrinsic functions that are supported by desktop compilers, but not supported by device compilers.
- Macros for Common Intrinsics
- Provided detailed reference information about macros that assist with processor-specific requirements.