S
siryuhan
I am trying to apply bitwise operations on float, double, and long
double values. I do not believe this is possible natively, so I
created a wrapper class to construct a double value given two
integers, similar to the bit representation of floating point numbers.
However, this is tedious and the decoding/encoding process is not
efficient.
Is there a portable way to apply AND, OR, XOR, >>, and << to doubles?
Thanks in advance.
double values. I do not believe this is possible natively, so I
created a wrapper class to construct a double value given two
integers, similar to the bit representation of floating point numbers.
However, this is tedious and the decoding/encoding process is not
efficient.
Is there a portable way to apply AND, OR, XOR, >>, and << to doubles?
Thanks in advance.