quote:Original post by Yann L
Those are two totally different things. The later one converts a IEEE float number into an integer number. The former one converts the raw bit representation of the floating point number into a 32 bit integer. It still stays a floating point number, but allows you to perform integer only operations (the bitshift) on it. Carmack''s trick is a hack, that works on the way a raw floating point number is stored in memory (signbit/exponent/mantissa). Google for a detailed explanation, it''s pretty well covered on the web.
This trick really rulez ! Thank you for have explained it to me )
then it is the same as
__asm{
lea ebx, x // it work ?!
mov i,dword ptr [ebx]
}
!o)