the
bitMingle
of
(
expression ,
expression )
bitMingle
(
expression ,
expression )
Both expressions yield integer
s.
The bitMingle
function returns an integer
produced by alternating the bits of the two's complement representations of the two given integer
s. For example, bitMingle(15,0)
will produce binary 10101010 or decimal 170, while bitMingle(0,15)
will produce binary 01010101 or decimal 85.
If both given values are positive, the result will be positive. If both given values are negative, the result will be negative. If one value is positive and the other value is negative, NaN
is returned.