blob: 224145c08c3b891748aca1528c41395cf920bd00 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
function LOG_PRI(p : longint) : longint;
begin
LOG_PRI:=(p and LOG_PRIMASK);
end;
function LOG_MAKEPRI(fac,pri : longint) : longint;
begin
LOG_MAKEPRI:=(fac shl 3) or pri;
end;
function LOG_FAC(p : longint) : longint;
begin
LOG_FAC:=(p and LOG_FACMASK) shr 3;
end;
function LOG_MASK(pri : longint) : longint;
begin
LOG_MASK:=1 shl pri;
end;
function LOG_UPTO(pri : longint) : longint;
begin
LOG_UPTO:=(1 shl (pri + 1)) - 1;
end;
|