Forum Discussion
Altera_Forum
Honored Contributor
15 years agoMath functions (sine & cosine) latency
Can anyone provide the data about the latency for sine and cosine single precision functions from math.h lib on Cyclone III, possibly Cyclone II, with floating point hardware acceleration (hardware d...
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- So hardware FPU won't help any functions defined in math.h. --- Quote End --- That's not true. In the Tutorial "Using Nios II Floating-Point Custom Instructions", you can find : --- Quote Start --- Table 1–2 indicates which math library functions use floating-point, and of those, which use floating-point division. If a function uses floating-point, it runs faster with floating-point hardware. If a function uses floating-point division, it runs even faster with floating-point division hardware. --- Quote End --- So the use of the floating point custom instruction affects the computation speed of the sine and cosine.