Текущий архив: 2003.10.06;
Скачать: CL | DM;
Вниз
биты в Integer Найти похожие ветки
← →
Anatoly P (2003-09-23 18:37) [0]Как узнать значения 1-го, 2-го... бита в переменной Integer, и -ссоответственно изменить.
← →
willys © (2003-09-23 18:41) [1]and or xor not shl shr + F1
← →
Skier © (2003-09-23 18:43) [2]function BitIsOn(AValue : Integer; ABit : Byte) : Boolean;
begin
Result := (AValue and (1 shl ABit)) <> 0;
end;
function TurnBitOn(AValue : Integer; ABit : Byte) : Integer;
begin
Result := (AValue or (1 shl ABit));
end;
Страницы: 1 вся ветка
Текущий архив: 2003.10.06;
Скачать: CL | DM;
Память: 0.46 MB
Время: 0.017 c