XMM-Newton Science Analysis System
selectlib (selectlib-4.73) [xmmsas_20160201_1833-15.0.0]
Meta Index
/
Home Page
/
Description
Bitwise operators
For bit manipulations the following six operators are provided:
description
operand
example
bitwise AND
&
b001110110 & b0111 = b110
bitwise OR
|
b001110110 | b0101 = b1110111
bitwise exclusive OR
b001110110
b0111 = b1110001
left shift
«
b111 « 2 = b11100
right shift
»
b111 » 2 = b1
one's complement (32 bit)
b111000 = b111...000111
XMM-Newton SOC/SSC -- 2016-02-01