POV-Ray : Newsgroups : povray.advanced-users : Bitwise AND : Re: Bitwise AND Server Time
28 Jul 2024 20:20:40 EDT (-0400)
  Re: Bitwise AND  
From: Patrick Elliott
Date: 4 Apr 2004 16:52:40
Message: <MPG.1ada23538462981989a0c@news.povray.org>
In article <406f258e@news.povray.org>, war### [at] tagpovrayorg says...
> John D. Gwinner <joh### [at] cornelledu> wrote:
> > Is it possible to do a Bitwise AND in SDL?
> 
>   POV-Ray handles only flotaing point numbers.
>   Even though you can more or less simulate bit flags with floating
> point numbers, it's not very feasible. And certainly there are no
> bit operators for them.
> 
>   Just use an array for your flags. It may take more memory, but you
> are not having millions of flags, are you?-)
> 
> 
But.... Some mathematical operations require such operations.... Or at 
least they can use them, so it is odd that such a thing is not actually 
supported. Any method used to simulate this, where the result needs to be 
used as a real numeric value would take extra steps to 'build' the value 
from the array, string or whatever. This is imho quite silly.

-- 
void main () {

    call functional_code()
  else
    call crash_windows();
}


Post a reply to this message

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