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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux