bit.lrotate
code:Lua
r = textmodule.bit.lrotate(n1, n2)
モジュール
bit
引数
table:_
変数 型 概要
1 n1 number 元の数値
2 n2 number シフトする桁数
返り値
table:_
変数 型 概要
1 r number 計算結果
概要
左循環ビットシフトを行う関数。
n1
を左に
n2
桁を循環シフトした値を取得する。