On 8/22/07, Dave Korn <[EMAIL PROTECTED]> wrote:
> float InvSqrt (float x){
>     float xhalf = 0.5f*x;
>     int i = *(int*)&x;

You are violating C/C++ aliasing rules here anyways.

>     i = 0x5f3759df - (i>>1);
>     x = *(float*)&i;

Likewise.

So I guess you like to depend on undefined code :).

-- Pinski

Reply via email to