lkml.org 
[lkml]   [2005]   [May]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 387 emulator hack - mutant AAD trick - any objections?
cutaway@bellsouth.net writes:
> Will there be any objections to using a quasi-documented mutation of the
> x86's AAD instruction in the 387 emulator? Every CPU around has to do this
> mutation correctly or a LOT of existing code will break...
>
> The performance of storing to user space of BCD numbers in the 387 emulator
> code could be improved significantly by using the mutant AAD instruction
> trick (i.e. alter its implicit base from 10 to 16). See reg_ld_str.c, in
> function FPU_store_bcd()

What do you mean by "quasi-documented" and "mutant"?
Intel certainly documents the "D5 ib" form as being a
valid way to change the base from the default 10.

The only issue AFAIK is that assemblers may only
recognise the plain base-10 AAD syntax. No biggie.

/Mikael
-
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-05-27 09:55    [W:0.042 / U:0.332 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site