summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@l3000.localdomain>2010-12-06 10:43:26 -0500
committerSøren Sandmann Pedersen <ssp@l3000.localdomain>2010-12-20 10:48:51 -0500
commitad5758a483978c274058e080a456b773c4b190b0 (patch)
tree6bbbabe7272869b86ca5a2e3fe6e73ab49456802
parentb8661cae52314c8c0c66a685098bddf8dbadb35d (diff)
Small optimization
-rw-r--r--dda.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/dda.c b/dda.c
index d0ba4b7..677638f 100644
--- a/dda.c
+++ b/dda.c
@@ -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;
}
}