[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: COMPLEX: Summary and language extension



>  Date: Mon, 12 Feb 96 09:56:59 EST
>  From: Mike Griebling <grieblm@trt.allied.com>
>  
>  I wouldn't mind if the front-end did the translation for me and just
>  introduced an op-code for the sqrt function.  Most RISC processors 
>  seem to have a sqrt instruction built-in anyway.  By exposing the
>  instructions to the optimizer, there may be some optimizations that
>  can be done.

Ok, I'll add the following ABS function:

Name            Argument type           Result type     Function
ABS(z)          COMPLEX                 REAL            sqrt(RE(z)^2+IM(z)^2)
ABS(z)          LONGCOMPLEX             LONGREAL	sqrt(RE(z)^2+IM(z)^2)

-- Michael