Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
FredBrach
on Aug 8, 2012
|
parent
|
context
|
favorite
| on:
The Beauty of Bresenham's Algorithm
I do doubt that even for a for(;;), a jmp (x86) is use instead of a conditional jump like jz.
dbaupp
on Aug 8, 2012
|
next
[–]
Compilers are smart! For common things like this, they will easily optimise away any conditional jumps.
tsahyt
on Aug 8, 2012
|
prev
[–]
It is, you can easily check that yourself. for(;;) compiles to exactly one jmp in GCC (tested with gcc 4.7.0)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: