[PATCH] staging/xgifb: Move register helper functions to header

Peter Hüwe PeterHuewe at gmx.de
Mon Jul 13 23:09:59 UTC 2015


Am Dienstag, 14. Juli 2015, 00:47:42 schrieb Greg KH:
> On Tue, Jul 14, 2015 at 12:44:09AM +0200, Peter Huewe wrote:
> > and mark them as static inline.
> > This shrinks the compiled module from 137442 to 117732 bytes and we also
> > get rid of vb_util.c
> 
> How is making these inline making the code go down in size?  Usually
> it's the opposite way around.  This is odd, any idea what is causing it?

Yes, usually that is true - but I guess since the outb/inb are quite small in 
terms of assembler (simple mov? on x86)
the overhead is much smaller when inlining these functions than to setup the 
call with two values on the stack.


Thanks,
Peter


More information about the devel mailing list