Using "integer type" has lots of merits against using "float type"
So, in some cases - especially in embedded system that uses ARM as their main MCU - we want to change float-operation into integer-operation by multiplying or shifting it.
Yes! It's a good method in point of performance!
But we should take our careful attention to OVER/UNDERFLOW of integer-operation!!!
(In case of float-operation, in general, we are free from over/under flow!)
Keep in mind this.
|[C/C++] Simple example of using 'typename' (0)||2008.04.22|
|[C/C++] Abusing throwing exception drops performance severely. (0)||2008.04.10|
|[C/C++] Attention! Integer-operation to avoid float-operation... (0)||2008.03.21|
|[C/C++] API to getting bufferred data... (0)||2008.01.06|
|[C/C++] Use instantiate-function(factory function) to hide concreate class... (0)||2007.12.13|
|[C/C++] Case study! Bad example about ignoring data-align.. (0)||2007.07.09|