POV-Ray : Newsgroups : povray.off-topic : This is great : Re: This is great Server Time
5 Sep 2024 19:27:10 EDT (-0400)
  Re: This is great  
From: Warp
Date: 21 Aug 2009 12:30:18
Message: <4a8ecb99@news.povray.org>
Invisible <voi### [at] devnull> 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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.