'Integer'에 해당되는 글 1건

  1. 2008.03.21 [C/C++] Attention! Integer-operation to avoid float-operation...

[C/C++] Attention! Integer-operation to avoid float-operation...

Language/C&C++ 2008.03.21 23:54
[[ 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.

신고
tags : ,
Trackback 0 : Comment 0

티스토리 툴바