Nios II Custom Instruction User Guide

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

3.2.3. Built-in Functions that Return a Value of Type Float

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

  • float __builtin_custom_fn (int n);
  • float __builtin_custom_fni (int n, int dataa);
  • float __builtin_custom_fnf (int n, float dataa);
  • float __builtin_custom_fnp (int n, void *dataa);
  • float __builtin_custom_fnii (int n, int dataa, int datab);
  • float __builtin_custom_fnif (int n, int dataa, float datab);
  • float __builtin_custom_fnip (int n, int dataa, void *datab);
  • float __builtin_custom_fnfi (int n, float dataa, int datab);
  • float __builtin_custom_fnff (int n, float dataa, float datab);
  • float __builtin_custom_fnfp (int n, float dataa, void *datab);
  • float __builtin_custom_fnpi (int n, void *dataa, int datab);
  • float __builtin_custom_fnpf (int n, void *dataa, float datab);
  • float __builtin_custom_fnpp (int n, void *dataa, void *datab);