|
|
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
|
|