Regarding Negative point & floating point comparisions
Posted: Mon Apr 23, 2007 4:46 am
Hi All,
I am developing an os in C for based on x86 arch. I have done my
booting code and switch to PM mode. Once the control comes to kernel
when I try to declare float or signed int with negative value and then
use compare statements it's giving wrong results. Some times it skips
the comparison part itself.
Some body pass on some clue to resolve this issue...
Tx,
Sampath S
I am developing an os in C for based on x86 arch. I have done my
booting code and switch to PM mode. Once the control comes to kernel
when I try to declare float or signed int with negative value and then
use compare statements it's giving wrong results. Some times it skips
the comparison part itself.
Some body pass on some clue to resolve this issue...
Tx,
Sampath S