On Wed, Nov 24, 2004 at 09:20:42AM +0100, Leopold Toetsch wrote:

> 2) Opcode variants with mixed arguments
> 
> Honestly
> 
>    acos Nx, Iy
> 
> and tons of other such opcodes are just overkill. If I want a numeric
> result, I just pass in a numeric argument. If people really want
> that, imcc has already some hooks to create from above
> 
>    set $N0, Iy
>    acos Nx, $N0
> 
> or convert an int constant to a double constant.
> 
> Well and above opcode isn't just one, these are two due to
> constant/non-constant argument addressing.

Heck, why do we even have transcendental maths ops that take integer
arguments or return integer results? Can't we kill the lot?
For everything that's intrinsically a function on real numbers, just take
have N and P register variants.

Nicholas Clark

Reply via email to