提交 a13265af 编写于 作者: M Mike Frysinger

Blackfin: fix typo in hweight asm

Run ONES on the incoming value rather than random garbage.  This fixes
random crashes with some networking code.
Signed-off-by: NMike Frysinger <vapier@gentoo.org>
上级 1ae9ab17
无相关合并请求
......@@ -119,7 +119,7 @@ static inline unsigned int hweight32(unsigned int w)
{
unsigned int res;
__asm__ ("%0.l = ONES %0;"
__asm__ ("%0.l = ONES %1;"
"%0 = %0.l (Z);"
: "=d" (res) : "d" (w));
return res;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部