28.2 Built-In Function Descriptions [DD]

This section describes the programmer interface to the compiler built-in functions.

The functions described in this section are “built in” and do not require a header file; however, we provide a file <builtins.h> that can be included to provide readable prototypes of these functions.

Also, there are no command-line switches associated with the built-in functions – they are always available. The built-in function names are chosen such that they belong to the compiler’s namespace (they all have the prefix __builtin_), so they will not conflict with function or variable names in the programmer’s namespace.

Note: If you attempt to use a built-in listed in this section with device architecture that it does not support, you will see the message below directing you to review the built-in’s architecture support.
Builtin not supported in the current configuration, please see MPLAB XC32
 C Compiler User's Guide (section 28.2) for more detail.
Table 28-1. Built-in Function List
Built-in Name and LinkBuilt-in Name and LinkBuilt-in Name and Link
__builtin_add_16__builtin_flim_excess_32__builtin_mulsu_32
__builtin_add_32__builtin_flimv_excess_32__builtin_mulus_16
__builtin_and_FCR__builtin_fmax__builtin_mulus_32
__builtin_btg_32__builtin_fmax_excess__builtin_muluu_16
__builtin_clr__builtin_fmaxv_excess__builtin_muluu_32
__builtin_div_3216__builtin_fmin__builtin_pwrsav
__builtin_divf_16__builtin_fmin_excess__builtin_repeat_nop
__builtin_divf_32__builtin_fminv_excess__builtin_sac_16
__builtin_divf_3216__builtin_get_isr_state__builtin_sac_32
__builtin_divmod_3216__builtin_ior_FCR__builtin_sacr_16
__builtin_divmodf, __builtin_divmodf_32__builtin_lac_16__builtin_sacr_32
__builtin_divmodf_16__builtin_lac_32__builtin_sat_abs_s16
__builtin_divmodf_3216__builtin_mac_16__builtin_sat_add_s16
__builtin_ed_16__builtin_mac_32__builtin_sat_sub_s16
__builtin_ed_32__builtin_max_16, __builtin_max_32__builtin_set_isr_state
__builtin_edac_16__builtin_min_16, __builtin_min_32__builtin_sftac
__builtin_edac_32__builtin_mod_3216__builtin_set_FCR
__builtin_fbcl__builtin_mpy_16__builtin_swap_32
__builtin_fbcl_16__builtin_mpy_32__builtin_udiv
__builtin_fbcl_32__builtin_mpyn_16__builtin_udivmod_3216
__builtin_ff1l, __builtin_ff1r__builtin_mpyn_32__builtin_umod_3216
__builtin_ff1l_16__builtin_msc_16__builtin_write_ACCH
__builtin_ff1l_32__builtin_msc_32__builtin_write_ACCL
__builtin_ff1r_16__builtin_mulss_16__builtin_write_ACCU
__builtin_ff1r_32__builtin_mulss_32__builtin_write_DISICTL
__builtin_flim_32__builtin_mulsu_16