POV-Ray : Newsgroups : povray.general : bitwise operator on int ? : Re: bitwise operator on int ? Server Time
29 Jul 2024 20:17:22 EDT (-0400)
  Re: bitwise operator on int ?  
From: Le Forgeron
Date: 14 Jul 2010 14:22:44
Message: <4c3e0074@news.povray.org>
Le 14/07/2010 17:37, Warp nous fit lire :
> Le_Forgeron <jgr### [at] freefr> wrote:
>> Is there such things already as a bitwise-AND, bitwise-OR, bitwise-XOR
>> in the SDL ?
> 
>   Since the SDL doesn't support integers (only floating point), bitwise
> operators seem kind of pointless...
> 
Ok, so I guess you have no objection if I post a patch in p.u.patches
for that purpose on 3.7;

Bitwise operations are sometime useful (just like int()), even if the
result is afterall a floating number (the range with accuracy might be
reduced, but at least it should be fine unless the 52 bits of double
precision mantissa get in the way: for 16 bits, it should still be ok)


Post a reply to this message

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