On Sat, 6 Aug 2005 21:04:16 -0400 Mike Frysinger <[EMAIL PROTECTED]> babbled:

> On Friday 05 August 2005 05:59 pm, Mike Frysinger wrote:
> > find attached a PoC patch ive been toying with lately for asm_blend.S which
> > fixes each memory reference so that it is PIC aware.  i can understand if
> > some people could care less if their library has textrel's in them and
> > would rather sacrifice a bit of slowdown at load time rather than slowdown
> > at runtime
> 
> i reviewed the stuff with some other Gentoo devs (Ned Ludd and Kevin F. Quinn)
> 
> and the PaX team and we've come up with a much nicer patch which shouldnt 
> really shouldnt add significant overhead to the mmx routines :)
> 
> the trick here is to go from doing:
> .data
> mVX000000: .byte   0,   0,   0,   0,   0,   0, 255, 127
> m00XXXXXX: .byte 255, 255, 255, 255, 255, 255,   0,   0
> .text
> movq mVX000000, %mm5
> movq m00XXXXXX, %mm6
> 
> to this:
> .text
> pushl $0x7FFF0000
> pushl $0x00000000
> movq (%esp), %mm5
> pushl $0x0000FFFF
> pushl $0xFFFFFFFF
> movq (%esp), %mm6
> addl $16, %esp
> 
> of course, these pretty little details are macro-ed out so in the source files
> 
> you simply do:
> LOAD_IMMQ(mVX000000, %mm5)
> LOAD_IMMQ(m00XXXXXX, %mm6)
> CLEANUP_IMMQ_LOADS(2)

aaah that is much better. and i see it's now in cvs. yes. very much better. :)


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    [EMAIL PROTECTED]
裸好多                              [EMAIL PROTECTED]
Tokyo, Japan (東京 日本)


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to