softwind1314 wrote:
不對歐 這位大大 你...(恕刪)
大大真是程式的高手, 太強了!

stan wu wrote:
Hi 各位大大這應該...(恕刪)
hotass196 wrote:
沒錯 ! fedora 大大說得沒錯.
樓上幾位寫的程式碼, 都無法閃避 "判斷" & "跳脫" 的 if 精神.
// returns 0xFFFFFFFF if odd. otherwise 0x00000000.
int LSD_extend(int i){
int a = i&1;
return (~a)+1;
};
// the wave symbol represents invertor.
// result equals to var1 if condition is odd.
result = ( var1 & LSD_extend(condition) ) | ( var2 & LSD_extend(~condition));
irs wrote:
那個應該是還好, 現在學校應該都還會教...