[[ blog 이사 과정에서 정확한 posting날짜가 분실됨. 년도와 분기 정도는 맞지 않을까? ]]
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.
'Language > C&C++' 카테고리의 다른 글
[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++] 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 |