- Dokumentacja
- Funkcje wspólne
- bitLRotate
Funkcja
bitLRotate
Obraca bity w lewo: bity wychodzące z lewej wracają z prawej strony.
Składnia
int bitLRotate(int value, int count)Argumenty
valueint- Liczba.
countint- O ile miejsc.
Zwraca
Wynik.
Przykład
print(string.format("%08X", bitLRotate(0x80000001, 1))) -- 00000003