Forum Discussion
Altera_Forum
Honored Contributor
13 years agoFP Custom Instructions - exp() won't get any faster
Hi everybody. I'm working on a design using Nios II/f that heavily relies on floating point math. In Qsys I addedd Floating Point Hardware and I connected it to the Custom Instruction Master of ...
Altera_Forum
Honored Contributor
13 years agoYou might need to just make sure that the BSP is all recompiled. Somewhere there is a box for its compiler options (IMHO it should default to -O3, but it doesn't). I think you have to pass the custom instruction numbers for the fp instructions on the compiler command line - so they probably have to go in there.
Alternatively, find the code for expf() and compile it as part of your program.