lkml.org 
[lkml]   [2005]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 5/14] i386 / Use early clobber to eliminate rotate in desc
Andi Kleen wrote:

>On Wed, Aug 10, 2005 at 09:54:11PM -0700, zach@vmware.com wrote:
>
>
>>Use an early clobber on addr to avoid the extra rorl instruction at the
>>end of _set_tssldt_desc.
>>
>>
>
>I would suggest to just use C for this. I do this on x86-64 and
>I don't think there is any reason to use this hard to maintain
>code for it.
>

This one in particular is non-optimal looking from C because the
compiler misses the potential for rotation. But, composing into
temporaries and then issuing two writes to memory instead of multiple
writes within the same word could actually get you a better cycle count,
and that is something GCC just might be able to do :)

Zach
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-08-17 01:58    [W:0.044 / U:0.828 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site