Threadser.net
數據
關鍵字
功能建議
Following
Threads
Login
串文
串文鏈結
2024-11-20 20:31
I've just discovered cmov instructions. Chat states they are branch-less. Should I trust the robot? [AS]sembly
讚
2
回覆
26
轉發
作者
Fluffy Bits
_fluffy_bits_
粉絲
185
串文
162+
讚
回覆
轉發
24小時粉絲增長
無資料
互動率
(讚 + 回覆 + 轉發) / 粉絲數
15.14%
回覆 (BETA)
最先回覆的內容
發文後
用戶
內容
2 天內
Fernando Giongo
fernando_giongo
Branchless, yes, but the tradeoff is that in practice the program will now execute both branches. No branching, but more code has to run. Being branchless is good for pipelining (no branch misses), but more code is bad for caching (more code, more cache misses). Overall I'd say leave it to the compiler to decide.