Forum Discussion
Altera_Forum
Honored Contributor
10 years agoTrigonometric functions with FPU
Hello, I'm trying to reduce the latency of my arithmetic operations. For that purpose i The CUSTOM FPU INSTRUCTION to my Nios. I've enabled HW and DIV at NIOS2-F. Using this Custom Instructi...
Altera_Forum
Honored Contributor
10 years agoI would suggest to you to try to invoke the function directly in your C code.
In your C: # include "system.h" then in your main: result_cos = ALT_CI_CI_FP_COSINE_0(a); Reason is that I have a feeling that the compiler is unable to map the new operations to the newlib. You could try to recompile newlib, rebuild BSP folder.