Nios II Custom Instruction User Guide

ID 683242
Date 4/27/2020
Public
Document Table of Contents
Give Feedback

3.2.2. Built-in Functions that Return a Value of Type Int

The following built-in functions in the Nios II GCC compiler return a value of type int. n represents the custom instruction selection index, and dataa and datab represent the input arguments, if any.

  • int __builtin_custom_in (int n);
  • int __builtin_custom_ini (int n, int dataa);
  • int __builtin_custom_inf (int n, float dataa);
  • int __builtin_custom_inp (int n, void *dataa);
  • int __builtin_custom_inii (int n, int dataa, int datab);
  • int __builtin_custom_inif (int n, int dataa, float datab);
  • int __builtin_custom_inip (int n, int dataa, void *datab);
  • int __builtin_custom_infi (int n, float dataa, int datab);
  • int __builtin_custom_inff (int n, float dataa, float datab);
  • int __builtin_custom_infp (int n, float dataa, void *datab);
  • int __builtin_custom_inpi (int n, void *dataa, int datab);
  • int __builtin_custom_inpf (int n, void *dataa, float datab);
  • int __builtin_custom_inpp (int n, void *dataa, void *datab);