bit32

非推奨を表示

This library provides functions to perform bitwise operations.

Number Limitations

This library treats numbers as unsigned 32-bit integers; numbers will be converted to this before being used (see image below). Numbers with decimal numbers are rounded to the nearest whole number.

32-bit integer conversion (in hexadecimal)

概要

関数

関数

arshift

パラメータ

disp: number

戻り値

band

パラメータ

numbers: Tuple

戻り値

bnot

パラメータ

戻り値

パラメータ

numbers: Tuple

戻り値

btest

パラメータ

numbers: Tuple

戻り値

bxor

パラメータ

numbers: Tuple

戻り値

countlz

パラメータ

戻り値

countrz

パラメータ

戻り値

extract

パラメータ

field: number
width: number
既定値: 1

戻り値

replace

パラメータ

field: number
width: number
既定値: 1

戻り値

lrotate

パラメータ

disp: number

戻り値

lshift

パラメータ

disp: number

戻り値

rrotate

パラメータ

disp: number

戻り値

rshift

パラメータ

disp: number

戻り値