Gitiles
Code Review
Sign In
gerrit.devboardsforandroid.linaro.org
/
device
/
linaro
/
hikey960
/
82c807137a2c3f033e23e414476d131e88ad221a
/
.
/
uefi
/
linaro-edk2
/
OvmfPkg
/
XenBusDxe
/
Ia32
/
TestAndClearBit.nasm
blob: d77f74ef249d8b2b9731383ffadf22be0c31b809 [
file
] [
log
] [
blame
]
SECTION
.
text
;
INT32
;
EFIAPI
;
TestAndClearBit
(
;
IN INT32
Bit
,
;
IN
volatile
VOID
*
Address
;
);
global
ASM_PFX
(
TestAndClearBit
)
ASM_PFX
(
TestAndClearBit
):
mov ecx
,
[
esp
+
4
]
mov edx
,
[
esp
+
8
]
lock
btr
[
edx
],
ecx
sbb eax
,
eax
ret