Patrick Baggett wrote:
>  I noticed that there are notes about removing data segment
> variables and moving them into text-segment (in the form of
> push/pop). I don't think that is faster than directly loading the
> values.

Using two pushes and a move is certainly slower than a single move, 
but this is done to make the code position-independent, so the 
segment becomes a truly sharable object.  Mesalibs won't often be 
shared, though, so the real reason may be something else, and the 
comment should probably mention this.

Let's ask the author of the change.  Kevin?

> > diff --git a/src/mesa/x86/read_rgba_span_x86.S
> >  /* Kevin F. Quinn 2nd July 2006
> > - * Replace data segment constants with text-segment
> > instructions

Benno

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to