Fast and branchless line drawing routines
edepot.com
edepot.com
The classic routine was by Bresenham. The previously fastest routine was by Wu, but his approach is complex. Compare them and see why:
http://www.edepot.com/linebresenham.html http://www.edepot.com/linewu.html
By comparison, EFLA just uses a pair of increment values in its main loop and no branching. I don't want to spoil how it works, but the key is in how the x and y increment values are chosen and why one of them is taken from the upper 16 bits.