richliu’s blog

Linux, 工作, 生活.

richliu’s blog header image 4

[Kernel] Linux Kernel 內的 Macro likely() 和 unlikely()

February 1st, 2007 · 2 Comments

在讀 Linux Permier 中文版的時候. Page 2-41 有一段
使用 likely() 與 unlikely() 巨集透過編譯器告知 CPU 有哪些程式區段不需要預測(likely)或有哪些程式區段需要預測(unlikely).

Tags: Linux

[Read more →]

Tags: Linux