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

看板LinuxDev作者 (chise)時間10年前 (2015/05/07 20:24), 編輯推噓0(002)
留言2則, 2人參與, 最新討論串1/1
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

05/07 21:18, , 1F
05/07 21:18, 1F

05/08 09:41, , 2F
感謝感謝!!!!
05/08 09:41, 2F
文章代碼(AID): #1LIrbl0k (LinuxDev)
文章代碼(AID): #1LIrbl0k (LinuxDev)