乗算よりシフト演算の方が高速だと信じているヤツが一生懸命シフト演算を使ったコードをgccが最適化で全て乗算に置き換えていく(x86、x86_64では乗算の方が高速)様子を眺めるのは楽しいものです
-
-
場合によってはシフト命令も吐きますよ。 $ cat hoge.c int hoge(int n){return 16*n;} $ gcc -O3 -S hoge.c -o - hoge: movl %ecx,%eax sall $4,%eax ret
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.