lkml.org 
[lkml]   [2016]   [Apr]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2 10/30] Add x86-specific parity functions
From
Date
在 2016年04月06日 18:53, Borislav Petkov 写道:
> On Wed, Apr 06, 2016 at 11:37:37AM +0100, One Thousand Gnomes wrote:
>> Even that would still be wrong for the smaller parity values. The CPU
>> supports 8bit parity directly going back to the 8086 so the
>> implementation for 8bit and I think 16bit is still wrong.
> I was objecting to the unnecessary replication of the hweight/popcnt
> glue.
>
> And yes, one could look up the definition of the parity flag on x86 and
> then base the implementation of all those smaller ones on that as the
> hardware does it for one practically for free there.
>
> :-)
>

SETcc (SETPO etc.) added since 80386, is this a problem?

\
 
 \ /
  Last update: 2016-04-07 06:01    [W:0.146 / U:0.380 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site