Thread (9 messages) 9 messages, 4 authors, 7d ago

Re: [PATCH] lib/fonts: Avoid unncessary 64-bit math in font code

From: Ethan Nelson-Moore <hidden>
Date: 2026-06-08 20:14:20
Also in: dri-devel

Hi, Helge and Thomas,

On Mon, Jun 8, 2026 at 12:58 PM Helge Deller [off-list ref] wrote:
On 6/8/26 13:25, Thomas Zimmermann wrote:
quoted
Why is there a 64-bit division at all?
Not sure. Might be platform specific.
Maybe, because you add two integers and divide by an integer, that the
compiler then chooses to use 64-bit integer division by 32-bit integer.
Actually, I think the real issue is that
arch/arm/boot/compressed/Makefile defines "static" to nothing when
compiling its copy of lib/fonts/font_acorn_8x8.c (via font.c), so that
the font array is available outside of the object file. I assume that
this causes various unused static inline functions in the headers it
includes (such as <linux/math.h>) to be included in the object file
because they become normal inline functions.

Ethan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help