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
FunctionXC16XC-DSCXC32
__disable_fiq1.ignoreignoreignore
__disable_interruptsupportsupportsupport
__disable_irq1.ignoreignoreignore
__enable_fiq1.ignoreignoreignore
__enable_interruptsupportsupportsupport
__enable_irq1.ignoreignoreignore
__get_interrupt_statesupportsupportsupport
__set_interrupt_statesupportsupportsupport
  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.