diff options
author | Søren Sandmann Pedersen <ssp@l3000.localdomain> | 2010-12-06 10:43:26 -0500 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@l3000.localdomain> | 2010-12-20 10:48:51 -0500 |
commit | ad5758a483978c274058e080a456b773c4b190b0 (patch) | |
tree | 6bbbabe7272869b86ca5a2e3fe6e73ab49456802 | |
parent | b8661cae52314c8c0c66a685098bddf8dbadb35d (diff) |
Small optimization
-rw-r--r-- | dda.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -117,17 +117,16 @@ dda (test_data_t *testdata) e -= BIG_STEP_X * dy; xi -= (1 << 8); xi |= (N_GRID_X - 1); - - goto begin; + goto small; } } else { + small: if (e > SMALL_STEP_X * dy) { e -= SMALL_STEP_X * dy; xi--; - goto begin; } } |