[XviD-devel] gme code

Christoph Lampert chl at math.uni-bonn.de
Sun Nov 16 13:43:21 CET 2003


On Sat, 15 Nov 2003, Jim Hauxwell wrote:

> 
> I would check what is generated by the compiler.  I have returned structures
> in the past and it has invoked a memcpy() to move the structure from the
> stack frame to the output.

You mean because of speed? That's a minor issue here, since the routine is
terribly slow anyway and called only once per frame... 

gruel



> -----Original Message-----
> From: xvid-devel-bounces at xvid.org [mailto:xvid-devel-bounces at xvid.org] On
> Behalf Of Christoph Lampert
> Sent: 15 November 2003 13:39
> To: xvid-devel at xvid.org
> Subject: Re: [XviD-devel] gme code
> 
> On Sat, 15 Nov 2003, elcabesa wrote:
> > is good code  returning a struct from a function?
> 
> Yes. Funnily enough, it has been a part of the C standard from the very
> beginning. It's not just a compiler extension or C99. 
> I guess I never used it before, because it sounds like something C
> would not allow, but it does.
> 
> gruel
> 
> 
> _______________________________________________
> XviD-devel mailing list
> XviD-devel at xvid.org
> http://list.xvid.org/mailman/listinfo/xvid-devel
> 
> _______________________________________________
> XviD-devel mailing list
> XviD-devel at xvid.org
> http://list.xvid.org/mailman/listinfo/xvid-devel
> 



More information about the XviD-devel mailing list