Skip to content

Commit

Permalink
Add alternate genlookup comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kraflab committed Oct 21, 2023
1 parent 54919fe commit 96c8df1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions prboom2/src/dsda/stretch.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@ static void GenLookup(short* lookup1, short* lookup2, int size, int max, int ste

lastfrac = frac = 0;

// lookup1[0] = 0;
// for (i = 1; i < max; ++i) {
// lookup1[i] = (float) i * size / max;
// lookup2[i - 1] = lookup1[i] - 1;
// }

// lookup2[max - 1] = size - 1;
// lookup1[max] = lookup2[max] = size;

for(i = 0; i < size; i++) {
if(frac >> FRACBITS > lastfrac >> FRACBITS) {
lookup1[frac >> FRACBITS] = i;
Expand Down

0 comments on commit 96c8df1

Please sign in to comment.