Hi,

Bitwise not is the same as xor -1.

Regards,
Thomas



On Thu, May 22, 2014 at 6:32 PM, Thomas <tballm...@gmx.de> wrote:

> Here is the usual java code
>
> result = result & ~mask
>
> So you need a bitweise bitand (which is implemented) and a bitwise NOT
> (which is not implemented). Using bitxor just toggles the flags, but don't
> clear them.
>
> Am Montag, 19. Mai 2014 08:50:48 UTC+2 schrieb Thomas:
>
>> Usuually it is easy to clear flags:
>>
>> flag = flag & ~mask;
>>
>> However, I miss the bitwise functions & and ~.
>>
>> I even thought about converting to a binary string and replace the 
>> x.thposition by zero ad converting back to Integer. However, this is also not
>> possible quickly - no way to convert to binary string (not hex) and to
>> replace a character at position x.
>>
>> So, how can I clear a flag ?
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "H2 Database" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to h2-database+unsubscr...@googlegroups.com.
> To post to this group, send email to h2-database@googlegroups.com.
> Visit this group at http://groups.google.com/group/h2-database.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to h2-database+unsubscr...@googlegroups.com.
To post to this group, send email to h2-database@googlegroups.com.
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to