use SQR(x) instead of x*x.

2007-03-31  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpdrawable-blend.c: use SQR(x) instead of x*x.


svn path=/trunk/; revision=22211
This commit is contained in:
Michael Natterer 2007-03-31 16:45:19 +00:00 committed by Michael Natterer
parent b2ef4856b0
commit 00be2f5f8c
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2007-03-31 Michael Natterer <mitch@gimp.org>
* app/core/gimpdrawable-blend.c: use SQR(x) instead of x*x.
2007-03-31 Michael Natterer <mitch@gimp.org>
* app/paint/gimppaintcore.c (gimp_paint_core_start): set

View File

@ -274,7 +274,7 @@ gradient_calc_conical_sym_factor (gdouble dist,
/* Calculate offset from the start in pixels */
r = sqrt (x * x + y * y);
r = sqrt (SQR (x) + SQR (y));
vec[0] = x / r;
vec[1] = y / r;