All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/1] video: stb_truetype: simplify expression
@ 2018-03-18 13:31 Heinrich Schuchardt
  2018-03-19  9:18 ` Anatolij Gustschin
  0 siblings, 1 reply; 2+ messages in thread
From: Heinrich Schuchardt @ 2018-03-18 13:31 UTC (permalink / raw)
  To: u-boot

Eliminate (x2 - x2) which is always zero.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 drivers/video/stb_truetype.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/video/stb_truetype.h b/drivers/video/stb_truetype.h
index 26e483cf56..5d00bff9fd 100644
--- a/drivers/video/stb_truetype.h
+++ b/drivers/video/stb_truetype.h
@@ -1993,7 +1993,7 @@ static void stbtt__fill_active_edges_new(float *scanline, float *scanline_fill,
 
                STBTT_assert(fabs(area) <= 1.01f);
 
-               scanline[x2] += area + sign * (1-((x2-x2)+(x_bottom-x2))/2) * (sy1-y_crossing);
+               scanline[x2] += area + sign * (1-(x_bottom-x2)/2) * (sy1-y_crossing);
 
                scanline_fill[x2] += sign * (sy1-sy0);
             }
-- 
2.16.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH 1/1] video: stb_truetype: simplify expression
  2018-03-18 13:31 [U-Boot] [PATCH 1/1] video: stb_truetype: simplify expression Heinrich Schuchardt
@ 2018-03-19  9:18 ` Anatolij Gustschin
  0 siblings, 0 replies; 2+ messages in thread
From: Anatolij Gustschin @ 2018-03-19  9:18 UTC (permalink / raw)
  To: u-boot

On Sun, 18 Mar 2018 14:31:43 +0100
Heinrich Schuchardt xypron.glpk at gmx.de wrote:

> Eliminate (x2 - x2) which is always zero.
> 
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
>  drivers/video/stb_truetype.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied to u-boot-video/master, thanks!

--
Anatolij

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-19  9:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-18 13:31 [U-Boot] [PATCH 1/1] video: stb_truetype: simplify expression Heinrich Schuchardt
2018-03-19  9:18 ` Anatolij Gustschin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.