Sign in
fuchsia
/
third_party
/
rust
/
0.4
/
.
/
src
/
rt
/
arch
/
i386
/
gpr.cpp
blob: 778d64490bafac29022bea41b3c8951b08b3e7e6 [
file
] [
log
] [
blame
]
#include
"gpr.h"
#define
LOAD
(
rn
)
do
{
\
uintptr_t
tmp
;
\
asm
(
"movl %%"
#rn ",%0" : "=r" (tmp) :); \
this
->
rn
=
tmp
;
\
}
while
(
0
)
void
rust_gpr
::
load
()
{
LOAD
(
eax
);
LOAD
(
ebx
);
LOAD
(
ecx
);
LOAD
(
edx
);
LOAD
(
esi
);
LOAD
(
edi
);
LOAD
(
ebp
);
LOAD
(
esi
);
}