Skip to content

Commit

Permalink
More typical CSE optimisation.
Browse files Browse the repository at this point in the history
  • Loading branch information
sh1boot committed Apr 7, 2014
1 parent f2cb928 commit faafde0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wavtofft.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ int main(int argc, char *argv[])
if (x < y)
x = y;
}
x = log10(x * 2.0) / 2.0 * 20.0 - log10(length) * 20.0;
x = log10(x) / 2.0 * 20.0 - log10(length * 0.5) * 20.0;
fprintf(outfile, " %lf", x);
}
fprintf(outfile, "\n");
Expand Down

0 comments on commit faafde0

Please sign in to comment.