fastMath
Posted: Fri Aug 03, 2012 7:16 am
Hello Folks,
benwilliam, the guy who contributed lcdDrawEllipse() also contributed two files, fastMath.h and fastMath.c which can be found in the glcd directory. In there he has some simpler functions to get the sine value etc. That is because he used this on some small 8-bit AVRs.
However, inside fastMath.c, there is float sinetable[91]. This values are stored in RAM because the tiny AVRs would have to long to use sin().
Does it make sense to keep these 364 bytes in RAM or isn't sin() that expensive on ARMs?
~ Tectu
benwilliam, the guy who contributed lcdDrawEllipse() also contributed two files, fastMath.h and fastMath.c which can be found in the glcd directory. In there he has some simpler functions to get the sine value etc. That is because he used this on some small 8-bit AVRs.
However, inside fastMath.c, there is float sinetable[91]. This values are stored in RAM because the tiny AVRs would have to long to use sin().
Does it make sense to keep these 364 bytes in RAM or isn't sin() that expensive on ARMs?
~ Tectu