看板 LinuxDev 關於我們 聯絡資訊
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, 可以請高手指點一下 要去哪裡查這些指令嗎? 謝謝各位 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 61.231.222.71 ※ 文章網址: https://www.ptt.cc/bbs/LinuxDev/M.1431001455.A.02E.html
tjjh89017: http://goo.gl/TjMEU3 <-- 05/07 21:18
chise: 感謝感謝!!!! 05/08 09:41