repo.or.cz
/
tomato
/
davidwu.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Correct PPTP server firewall rules chain.
[tomato/davidwu.git]
/
release
/
src
/
router
/
nettle
/
x86
/
machine.m4
blob
38bee36625e8956ef1bbd0de795a09c947e347c4
1
C OFFSET(i)
2
C Expands to 4*i, or to the empty string if i is zero
3
define(<OFFSET>, <ifelse($1,0,,eval(4*$1))>)
4
5
dnl LREG(reg) gives the 8-bit register corresponding to the given 32-bit register.
6
define(<LREG>,<ifelse(
7
$1, %eax, %al,
8
$1, %ebx, %bl,
9
$1, %ecx, %cl,
10
$1, %edx, %dl)>)dnl
11
12
define(<HREG>,<ifelse(
13
$1, %eax, %ah,
14
$1, %ebx, %bh,
15
$1, %ecx, %ch,
16
$1, %edx, %dh)>)dnl