23.6 Intrinsic Functions

Intrinsic functions can be used to perform common tasks in the source code. The MPLAB XC compilers’ support for the intrinsic functions offered by other compilers is shown in the following table.

Table 23-6. Support for Non-Standard Intrinsic Functions
IAR Compatibility Mode
Function XC16 XC-DSC XC32
__disable_fiq1. ignore ignore ignore
__disable_interrupt support support support
__disable_irq1. ignore ignore ignore
__enable_fiq1. ignore ignore ignore
__enable_interrupt support support support
__enable_irq1. ignore ignore ignore
__get_interrupt_state support support support
__set_interrupt_state support support support
  1. These intrinsic functions map to macros which disable or enable the global interrupt enable bit on 8-bit PIC® devices.

The header file <xc.h> must be included for supported functions to operate correctly.