「你們要....儆醒禱告。」(聖經彼得前書四章 7 節)
朋友,不要冒險和世界接觸,如果你還沒有禱告。當你晚上跪下禱告的
你一點都不儆醒禱告!你忽略了儆醒;這樣的忽略能不能補救的呢
你不儆醒禱告,是一件何等嚴重的事!試探在你面前,你無法對付
信徒們,不要作無謂的冒險,把儆醒禱告這件事忽略了
「你們要....儆醒禱告。」(聖經彼得前書四章 7 節)
朋友,不要冒險和世界接觸,如果你還沒有禱告。當你晚上跪下禱告的
你一點都不儆醒禱告!你忽略了儆醒;這樣的忽略能不能補救的呢
你不儆醒禱告,是一件何等嚴重的事!試探在你面前,你無法對付
信徒們,不要作無謂的冒險,把儆醒禱告這件事忽略了
Most of the time, when the kernel compares a variable against some external value to see whether a given condition is met, the result is extremely likely to be predictable. This is pretty common, for example, with code that enforces sanity checks. The kernel uses the likely and unlikely macros, respectively, to wrap comparisons that are likely to return a true (1) or false (0) result. Those macros take advantage of a feature of the gcc compiler that can optimize the compilation of the code based on that information.
Here is an example. Let's suppose you need to call the do_something function, and that in case of failure, you must handle it with the handle_error function:
err = do_something(x,y,z);
if (err)
handle_error(err);
Under the assumption that do_something rarely fails, you can rewrite the code as follows:
err = do_something(x,y,z);
if (unlikely(err))
handle_error(err);
An example of the optimization made possible by the likely and unlikely macros is in handling options in the IP header. The use of IP options is limited to very specific cases, and the kernel can safely assume that most IP packets do not carry IP options. When the kernel forwards an IP packet, it needs to take care of options according to the rules described in Chapter 18. The last stage of forwarding an IP packet is taken care of by ip_forward_finish. This function uses the unlikely macro to wrap the condition that checks whether there is any IP option to take care of. See the section "ip_forward_finish Function" in Chapter 20.
基本上跟先前的認知是一樣的, 但發覺 ARM, MIPS 跟 PowerPC 用的 GNU crosscompiler 似乎都不會去做這些個 optimization... x86 的就會...
「除了從地上買來的那十四萬四千人以外,沒有人能學這歌。」
有一種歌,既非藝術所能教,也非樂理所能編,只有在患難中能學會的
沒有一個天使能唱得像我們這麼好聽。他們要唱,他們就必須走我們所
所以,我的己哪!你現在正在從父學習音樂功課。祂訓練你
你的父在訓練你擔任那天使所不能擔任的一部分;訓練你的學校就是苦
在黑雲中祂試你的聲音,在憂傷中祂教你唱歌的表情
「我乃稱你們為朋友。」(聖經約翰福音十五章 15 節)
數年前某大學有一位年老的德文教授,他的生活是為全校學生所欽佩的
教授走進書室,時間已很遲了。看他的樣子似乎很累,但是他坐下來
與主歡聚是屬靈生活中的最高點;每一個基督人,該不惜任何代價