Google

Go to the first, previous, next, last section, table of contents.


ishift

ishift(i,count)
:: bit shift
return
整数
i,count
整数
  • 整数 i の絶対値を bit 列とみて shift する.
  • i の符号は無視し, 非負の値を返す.
  • count が正ならば右 shift, 負ならば左 shift を行う.
[0] ctrl("hex",1);
0x1
[1] ishift(0x1000000,12); 
0x1000
[2] ishift(0x1000,-12);   
0x1000000
[3] ixor(0x1248,ishift(1,-16)-1);
参照
section iand, ior, ixor.


Go to the first, previous, next, last section, table of contents.