|
|
|
|
|
by scatters
2955 days ago
|
|
No, that's also incorrect. The correct way is: float f;
memcpy(&f, i, sizeof f);
Don't worry about the implied overhead of the call to memcpy; the compiler will replace it with an intrinsic and emit the expected movss instruction. |
|