next up previous contents
Next: bit_lshift Up: リファレンスマニュアル Previous: bit_and

  
bit_comp

【目的】
bit_comp - ビット毎の反転(1の補数)
【形式】
j = bit_comp(i)     Y = bit_comp(X)
   Integer j;          (Array|Index) Y;
   Integer i;          (Array|Index) X;
【詳細】
j = bit_comp(i) は整数 i の各ビットを反転した整数 j を求める。 bit_comp(X)は,(配列|指数) X の各成分のビットを反転した整数 からなる(配列|指数) Y を求める。Y の大きさは X の大きさと同じになる。
【例題】
>> j = bit_comp(0xffffff00)
j = 255 (= 0x000000ff)
【参照】
bit_and(2.20), bit_or(2.23), bit_xor(2.25)


Masanobu KOGA 平成11年10月2日