News for hackers. Stuff that matters.
Re:The Beauty of Bresenham's Algorithm by FredBrach on Tuesday August 07, 2012 @09:21PM (#4353366)
I do doubt that even for a for(;;), a jmp (x86) is use instead of a conditional jump like jz.
Re:The Beauty of Bresenham's Algorithm by dbaupp on Wednesday August 08, 2012 @01:57AM (#4354165)
Compilers are smart! For common things like this, they will easily optimise away any conditional jumps.
Re:The Beauty of Bresenham's Algorithm by tsahyt on Wednesday August 08, 2012 @09:27AM (#4355377)
It is, you can easily check that yourself. for(;;) compiles to exactly one jmp in GCC (tested with gcc 4.7.0)