[syslinux:master] com32, bitops: proper constraint for byte-sized output

syslinux-bot for H. Peter Anvin hpa at zytor.com
Mon Apr 4 16:45:02 PDT 2011


Commit-ID:  0c527252d94c5fc54e637143ec9fdb36ac698c62
Gitweb:     http://syslinux.zytor.com/commit/0c527252d94c5fc54e637143ec9fdb36ac698c62
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Mon, 4 Apr 2011 16:43:10 -0700
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Mon, 4 Apr 2011 16:43:10 -0700

com32, bitops: proper constraint for byte-sized output

The proper output for the byte-sized output of "setc" is "=qm".

Signed-off-by: H. Peter Anvin <hpa at zytor.com>


---
 com32/include/sys/bitops.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/com32/include/sys/bitops.h b/com32/include/sys/bitops.h
index 33bb0aa..40e09fe 100644
--- a/com32/include/sys/bitops.h
+++ b/com32/include/sys/bitops.h
@@ -54,7 +54,7 @@ static inline int __purefunc test_bit(long __bit, const void *__bitmap)
 {
     unsigned char __r;
     asm("btl %2,%1; setc %0"
-	: "=r" (__r)
+	: "=qm" (__r)
 	: "m" (*(const unsigned char *)__bitmap), "Ir" (__bit));
     return __r;
 }



More information about the Syslinux-commits mailing list