[問題] linux source code裡用的asm指令

作者: chise (chise)   2015-05-07 20:24:12
Linux/arch/sh/include/asm/bitops.h
裡面的function之一
static inline unsigned long __ffs(unsigned long word)
{
unsigned long result;
__asm__("1:\n\t"
"shlr %1\n\t"
"bf/s 1b\n\t"
" add #1, %0"
: "=r" (result), "=r" (word)
: "" (~0L), "1" (word)
: "t");
return result;
}
請問各位高手 __asm__裡面寫的不是assembly的語法嗎?
可是 為什麼我都查不到有關
shlr
bf/s
這些指令是什麼意思?
為一看懂的只有add,
可以請高手指點一下 要去哪裡查這些指令嗎?
謝謝各位
作者: tjjh89017 (伊達政宗)   2015-05-07 21:18:00
作者: chise (chise)   2015-05-08 09:41:00
感謝感謝!!!!

Links booklink

Contact Us: admin [ a t ] ucptt.com