XMM-Newton Science Analysis System
selectlib (selectlib-4.72.1) [xmmsas_20141104_1833-14.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 -- 2014-11-04