|
 |
Invisible <voi### [at] dev null> wrote:
> Still, C is a language where, if you so desire, you can make your code
> depend on the exact size of a struct, the endianness of machine words,
> and all kinds of other things to make your code extra fragile. I suppose
> some people would consider this a "feature"...
Well, sometimes it is useful to be able to poke at memory directly.
For example, changing the sign of a floating point value is much faster
by flipping that one bit at the end of it than doing it with the FPU.
(Of course after this little trick your program will assume IEEE floating
point numbers. But for many purposes that suffices.)
--
- Warp
Post a reply to this message
|
 |